[2] 擬似クラスは、文書木の外部にある情報、 あるいは他の単純選択子だけでは表せない情報を使って要素を選択することができる単純選択子です >>3。
[15] 擬似クラスは種類によっては互いに排他的な意味を持っている者同士のこともあります >>3 が、 それを指定すること自体は禁止されていません (意味はありませんが)。
[17] 擬似クラスは単純選択子であり、単純選択子列内で何個でも使うことができます。 単純選択子は型選択子や普遍選択子よりも後に来なければなりません。 擬似要素は単純選択子列に含まれないので、擬似クラスは常に擬似要素の前に来る必要があります。
[13] 擬似クラスは、 :
ではじまり、擬似クラスの名前が続きます。
擬似クラスによっては更に括弧に括られた値が続くことがあります。 >>3
[38] 擬似クラスの名前と引数の (
の間には注釈を挿入できません。
[14] 擬似クラスの名前はASCII大文字・小文字不区別です >>3。括弧の中身については擬似クラスの種類に拠ります。
[33] 擬似クラスは >>32 で導入されました。当時はクラス選択子と同じ .
を使っていて、名前以外では本当にクラスと区別できませんでした。
[34] >>35 で .
のかわりに :
が使われるようになりました。
この時は今の擬似要素も擬似クラスと呼ばれるようになり (擬似要素の歴史の項を参照。)、
やはり :
が使われるようになりました。
[29] XForms ではいくつかの擬似クラスの XForms での意味が参考として掲載されています。
[30] XForms 1.0 は選択子3またはCSS UIで規定されている擬似クラスについて述べています。
[31] XForms 1.1 ではそれに加えて :value-empty
と :value-non-empty
について述べています。
:first-child
:-moz-first-node
:first-of-any
:first-of-type
:focus
:forms-invalid
:forms-optional
:forms-required
:forms-valid
:future
名前 | 説明 | 状態 | 出典 |
:above-level | |||
:active | 活性 | W3C 勧告 | [CSS1], [CSS2], [CSS2.1], [Selectors], [CSS3 UI] |
:alink | 活性リンク | 非標準 → :active | |
:-moz-alt-text | |||
:-moz-any-link | |||
:-webkit-any-link | |||
:at-level | |||
:-webkit-autofill | |||
:below-level | |||
:blank | 非標準 | ||
:bound-element | |||
:-moz-bound-element | |||
:-moz-broken | |||
:checked | チェック済 | W3C 勧告候補 | [Selectors] |
:closed | |||
:contains(文字列) | 削除 (W3C 勧告候補) | ||
:current | 選択項目 | 非標準 | |
:default | W3C 勧告候補 | [CSS3 UI] | |
:disabled | 無効 | W3C 勧告候補 | [Selectors], [XForms] |
:-webkit-drag | |||
:-moz-drag-over | |||
:edited | SVG 1.2 | ||
:empty | 空要素 | W3C 勧告候補 | [Selectors] |
:-moz-empty-except-children-with-localname | |||
:enabled | 有効 | W3C 勧告候補 | [Selectors], [XForms] |
:eq | 特定数番目 | 非標準 | jQuery |
:even | 偶数番目 | 非標準 | jQuery |
:expanded | 展開中 | 非標準 | |
:first | 最初の頁 | W3C 勧告 | CSS 2 |
:first | 一番目 | 非標準 | jQuery |
:gt | 特定数番目より後 | 非標準 | jQuery |
:-moz-has-handlerref | |||
:hidden | 不可視 | 非標準 | jQuery |
:hover | mouseover | W3C 勧告 | CSS 2, CSS 2.1, [Selectors] |
:indeterminate | W3C LCWD 予約 (元 W3C 勧告候補) | [Selectors] | |
:in-range | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:-webkit-input-placeholder | |||
:invalid | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:lang(言語) | 自然言語 | W3C 勧告 | CSS 2, CSS 2.1, [Selectors] |
:last | 最後 | 非標準 | jQuery |
:last-child
:-moz-last-node
:last-of-any
:last-of-type
:left | 左の頁 | W3C 勧告 | CSS 2 |
:link | 未訪リンク | W3C 勧告 | CSS 1, CSS 2, CSS 2.1, [Selectors] |
:-moz-loading | |||
:lt | 特定数番目より前 | 非標準 | jQuery |
:-moz-math-font-style-anonymous | |||
:-moz-math-font-style-stretchy | |||
:-webkit-full-page-media | WebKit | ||
:not(単純選択子) | 否定 | W3C 勧告候補 | [Selectors] |
:not-first-child
:not-first-of-any
:not-first-of-type
:not-last-child
:not-last-of-any
:not-last-of-type
:not-nth-of-type
:not-nth-child
:not-only-child
:not-only-of-any
:not-only-of-type
:nth | 特定数番目 | 非標準 | jQuery |
:nth-child
:nth-last-child(n) | W3C 勧告候補 | [Selectors] | |
:nth-last-of-type(n) | W3C 勧告候補 | [Selectors] |
:nth-of-type
:odd
:only-child
:only-of-any
:only-of-type
:-moz-only-whitespace
:open
:optional | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:-moz-outline | |||
:out-of-range | W3C 勧告候補 | [CSS3 UI], [XForms] |
:parent
:past
:-o-prefocus | Opera 9.50 Alpha 1 | ||
:-moz-placeholder | |||
:read-only | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:-moz-read-only | |||
:read-write | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:-moz-read-write | |||
:required | W3C 勧告候補 | [CSS3 UI], [XForms] | |
:right | 右の頁 | W3C 勧告 | CSS 2 |
:role | |||
:root | 根要素 | W3C 勧告候補 | [Selectors] |
:selected
:state
:subject | 主語 | 選択子 | |
:-moz-suppressed | 画像がブロックされている場合 | ||
:-moz-system-metric() | |||
:target | W3C 勧告候補 | [Selectors] | |
:timed-inactive | W3C 会員提出, W3C WD | 時刻シート, SMIL 3.0 |
:unchecked
:unselected
:-moz-type-unsupported | 未対応の object type | ||
:-moz-user-disabled | 利用者がすべての画像を無効化している場合 | ||
:valid | W3C 勧告候補 | [CSS3 UI], [XForms] |
:value-empty
:value-non-empty
:visible
:visited
:vlink
:write-only
[42] Terra Informatica Software, Inc., , https://web.archive.org/web/20101124105140/http://www.terrainformatica.com/htmlayout/csss!-dom-object.whtm
[6]
Bug 3935 – mozilla-native pseudo classes and properties should be marked as such [SELECT] (2007-12-23 13:33:53 +09:00
版) https://bugzilla.mozilla.org/show_bug.cgi?id=3935
(名無しさん)
[7] AlternateIdea: Introducing CSS event:Selectors ( 版) http://alternateidea.com/event-selectors/
[8] CSS Reference:Mozilla Extensions - MDC ( 版) http://developer.mozilla.org/en/docs/CSS_Reference:Mozilla_Extensions
[9] Web Controls 1.0 ( 版) http://www.whatwg.org/specs/web-controls/current-work/#pseudo-classes
[10] XForms 1.1 ( 版) http://www.w3.org/TR/2009/REC-xforms-20091020/#N90079
[11] Oracle Fusion Middleware Tag Reference for Oracle ADF Faces Skin Selectors ( ( 版)) http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15862/toc.htm
[41] XML Binding Language (XBL) 2.0 ( ( 版)) http://www.w3.org/TR/2007/CR-xbl-20070316/#matching