Skip to content

Commit

Permalink
FF121 CSS :state() pseudo class (#22083)
Browse files Browse the repository at this point in the history
* FF121 CSS :state() pseudo class

* Behind preference

* Add note about Chrome support

* Update css/selectors/state.json
  • Loading branch information
hamishwillee committed Feb 5, 2024
1 parent a97430b commit a57c886
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions css/selectors/state.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"css": {
"selectors": {
"state": {
"__compat": {
"description": "Custom state pseudo-class selector (<code>:state()</code>)",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/:state",
"spec_url": "https://html.spec.whatwg.org/multipage/semantics-other.html#selector-custom",
"support": {
"chrome": {
"version_added": false,
"notes": "From version 90 Chromium supports custom state selection using a dashed-ident (such as <code>:--foo</code>) instead of <code>:state()</code>."
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
"version_added": "121",
"flags": [
{
"type": "preference",
"name": "dom.element.customstateset.enabled",
"value_to_set": "true"
}
]
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "preview",
"flags": [
{
"name": "CustomStateSet",
"value_to_set": "true",
"type": "preference"
}
]
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
}
}
}
}

0 comments on commit a57c886

Please sign in to comment.