diff options
author | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-01-27 21:00:34 -0500 |
---|---|---|
committer | Patrick Shaughnessy <pshaughn@comcast.net> | 2020-01-30 10:09:51 -0500 |
commit | 8ca4db2cd64344c874016f110922cefd9e4ebb58 (patch) | |
tree | ef8e52137eeb311b7783d75dd708eacd2863c443 /components/style/servo/selector_parser.rs | |
parent | 6d220d02de9cd8e50421080179355875789f1100 (diff) | |
download | servo-8ca4db2cd64344c874016f110922cefd9e4ebb58.tar.gz servo-8ca4db2cd64344c874016f110922cefd9e4ebb58.zip |
:defined works
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 942dcdba1bb..599b603f4ff 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -278,6 +278,7 @@ pub enum NonTSPseudoClass { Active, AnyLink, Checked, + Defined, Disabled, Enabled, Focus, @@ -332,6 +333,7 @@ impl ToCss for NonTSPseudoClass { Active => ":active", AnyLink => ":any-link", Checked => ":checked", + Defined => ":defined", Disabled => ":disabled", Enabled => ":enabled", Focus => ":focus", @@ -371,6 +373,7 @@ impl NonTSPseudoClass { Focus => ElementState::IN_FOCUS_STATE, Fullscreen => ElementState::IN_FULLSCREEN_STATE, Hover => ElementState::IN_HOVER_STATE, + Defined => ElementState::IN_DEFINED_STATE, Enabled => ElementState::IN_ENABLED_STATE, Disabled => ElementState::IN_DISABLED_STATE, Checked => ElementState::IN_CHECKED_STATE, @@ -436,6 +439,7 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> { "active" => Active, "any-link" => AnyLink, "checked" => Checked, + "defined" => Defined, "disabled" => Disabled, "enabled" => Enabled, "focus" => Focus, |