mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Implement <meta name=color-scheme>
There are still tests failing because https://bugzilla.mozilla.org/show_bug.cgi?id=1736034 hasn't been synced yet. Once that lands, they will still fail because we don't change Canvas/CanvasText based on color-scheme, but that I'm attaching patches for after this one. Differential Revision: https://phabricator.services.mozilla.com/D129743
This commit is contained in:
parent
3a23598080
commit
6c16c019fc
1 changed files with 5 additions and 0 deletions
|
@ -958,6 +958,11 @@ impl ColorScheme {
|
||||||
bits: ColorSchemeFlags::empty(),
|
bits: ColorSchemeFlags::empty(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the raw bitfield.
|
||||||
|
pub fn raw_bits(&self) -> u8 {
|
||||||
|
self.bits.bits
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Parse for ColorScheme {
|
impl Parse for ColorScheme {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue