mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Implement :defined pseudo-class for custom elements.
Bug: 1331334 Reviewed-by: emilio
This commit is contained in:
parent
06fa3406de
commit
b68e4c2352
4 changed files with 7 additions and 1 deletions
|
@ -187,6 +187,9 @@ impl NonTSPseudoClass {
|
|||
NonTSPseudoClass::Fullscreen => unsafe {
|
||||
mozilla::StaticPrefs_sVarCache_full_screen_api_unprefix_enabled
|
||||
},
|
||||
NonTSPseudoClass::Defined => unsafe {
|
||||
structs::nsContentUtils_sIsCustomElementsEnabled
|
||||
},
|
||||
// Otherwise, a pseudo-class is enabled in content when it
|
||||
// doesn't have any enabled flag.
|
||||
_ => !self.has_any_flag(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue