From 6c16c019fc7b3f2329d572f3ff83a345e595c706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 30 May 2023 20:35:36 +0200 Subject: [PATCH] style: Implement 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 --- components/style/values/specified/color.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index 44d290bcb0e..2fd586864ae 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -958,6 +958,11 @@ impl ColorScheme { bits: ColorSchemeFlags::empty(), } } + + /// Returns the raw bitfield. + pub fn raw_bits(&self) -> u8 { + self.bits.bits + } } impl Parse for ColorScheme {