CSS selector input test grid
inopinatus
There are many opportunities to respond to interactive page state in pure CSS. Many (not all) rely on selectors against input types. I put this table together whilst building up a CSS-centric page automation toolkit, for examining opportunities for stateful behaviours and transitions in web pages using little or no Javascript.
Other elements |
Element
Selectors
|
---|---|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
summarydetails:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
span
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
|
|
Trigger
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
Trigger
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
Trigger
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
https://inopinatus.org
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
http://www.random.none
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|
|
:active
:checked
:default
:disabled
:enabled
:focus
:focus-within
:hover
:in-range
:indeterminate
:valid
:invalid
:optional
:out-of-range
:placeholder-shown
:read-only
:read-write
:required
:target
:link
:visited
:any-link
[open]
:not([open])
|