mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add support for fullscreen #10102
This commit is contained in:
parent
c3c086e521
commit
55f0e56224
33 changed files with 454 additions and 30 deletions
|
@ -90,6 +90,7 @@ pub enum NonTSPseudoClass {
|
|||
Visited,
|
||||
Active,
|
||||
Focus,
|
||||
Fullscreen,
|
||||
Hover,
|
||||
Enabled,
|
||||
Disabled,
|
||||
|
@ -111,6 +112,7 @@ impl ToCss for NonTSPseudoClass {
|
|||
Visited => ":visited",
|
||||
Active => ":active",
|
||||
Focus => ":focus",
|
||||
Fullscreen => ":fullscreen",
|
||||
Hover => ":hover",
|
||||
Enabled => ":enabled",
|
||||
Disabled => ":disabled",
|
||||
|
@ -132,6 +134,7 @@ impl NonTSPseudoClass {
|
|||
match *self {
|
||||
Active => IN_ACTIVE_STATE,
|
||||
Focus => IN_FOCUS_STATE,
|
||||
Fullscreen => IN_FULLSCREEN_STATE,
|
||||
Hover => IN_HOVER_STATE,
|
||||
Enabled => IN_ENABLED_STATE,
|
||||
Disabled => IN_DISABLED_STATE,
|
||||
|
@ -187,6 +190,7 @@ impl<'a> ::selectors::Parser for SelectorParser<'a> {
|
|||
"visited" => Visited,
|
||||
"active" => Active,
|
||||
"focus" => Focus,
|
||||
"fullscreen" => Fullscreen,
|
||||
"hover" => Hover,
|
||||
"enabled" => Enabled,
|
||||
"disabled" => Disabled,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue