:default CSS pseudo-class
The :default
pseudo-class matches checkboxes and radio buttons which are checked by default, <option>
s with the selected
attribute, and the default submit button (if any) of a form.
IE | Edge | Firefox | Chrome | Safari | Opera | iOS Safari | Opera Mini | Android Browser | Blackberry Browser | Opera Mobile | Chrome for Android | Firefox for Android | IE Mobile | UC Browser for Android | Samsung Internet | QQ Browser | Baidu Browser |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49
See notes:
|
|||||||||||||||||
56 | 9.3
See notes:
|
4.4
See notes:
|
|||||||||||||||
14 | 52 | 57 | 10
See notes:
|
10.0-10.2
See notes:
|
4.4.3-4.4.4
See notes:
|
4
See notes:
|
|||||||||||
11 | 15 | 53 | 58 | 10.1 | 44 | 10.3 | all
See notes:
|
56 | 10
See notes:
|
37
See notes:
|
57 | 52 | 11 | 11.4
See notes:
|
5 | 1.2 | 7.12 |
54 | 59 | TP | 45 | ||||||||||||||
55 | 60 | 46 | |||||||||||||||
56 | 61 |
Notes
Whether <option selected>
matches :default
(per the spec) was not tested since <select>
s and <option>
s are generally not styleable, which makes it hard to formulate a test for this.
-
1
Does not match
<input type="checkbox" checked>
or<input type="radio" checked>
-
2
Does not match the default submit button of a form