mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
style: Enable forced-colors in UA and chrome always
Differential Revision: https://phabricator.services.mozilla.com/D112069
This commit is contained in:
parent
b5dcb5c961
commit
7425f2d922
1 changed files with 5 additions and 1 deletions
|
@ -221,7 +221,11 @@ fn disabled_by_pref(feature: &Atom, context: &ParserContext) -> bool {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
{
|
{
|
||||||
if *feature == atom!("forced-colors") {
|
if *feature == atom!("forced-colors") {
|
||||||
return !static_prefs::pref!("layout.css.forced-colors.enabled");
|
// forced-colors is always enabled in the ua and chrome. On
|
||||||
|
// the web it is hidden behind a preference, which is defaulted
|
||||||
|
// to 'true' as of bug 1659511.
|
||||||
|
return !context.in_ua_or_chrome_sheet() &&
|
||||||
|
!static_prefs::pref!("layout.css.forced-colors.enabled");
|
||||||
}
|
}
|
||||||
// prefers-contrast is always enabled in the ua and chrome. On
|
// prefers-contrast is always enabled in the ua and chrome. On
|
||||||
// the web it is hidden behind a preference.
|
// the web it is hidden behind a preference.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue