mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Remove focus-visible feature flag.
This shipped in 85, we can remove the feature flag now. Keep :-moz-focusring as an alias to :focus-visible at parse time. Differential Revision: https://phabricator.services.mozilla.com/D103752
This commit is contained in:
parent
84cabf2416
commit
e084d8e9d2
3 changed files with 1 additions and 6 deletions
|
@ -102,6 +102,7 @@ impl NonTSPseudoClass {
|
|||
"-moz-full-screen" => Some(NonTSPseudoClass::Fullscreen),
|
||||
"-moz-read-only" => Some(NonTSPseudoClass::ReadOnly),
|
||||
"-moz-read-write" => Some(NonTSPseudoClass::ReadWrite),
|
||||
"-moz-focusring" => Some(NonTSPseudoClass::FocusVisible),
|
||||
"-webkit-autofill" => Some(NonTSPseudoClass::Autofill),
|
||||
_ => None,
|
||||
}
|
||||
|
@ -136,9 +137,6 @@ impl NonTSPseudoClass {
|
|||
/// Returns whether the pseudo-class is enabled in content sheets.
|
||||
#[inline]
|
||||
fn is_enabled_in_content(&self) -> bool {
|
||||
if let NonTSPseudoClass::FocusVisible = *self {
|
||||
return static_prefs::pref!("layout.css.focus-visible.enabled");
|
||||
}
|
||||
if let NonTSPseudoClass::Autofill = *self {
|
||||
return static_prefs::pref!("layout.css.autofill.enabled");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue