Repository navigation
Enable prefers-color-scheme - #93
Conversation
Signed-off-by: Nico Burns <[email protected]>
069aa9f to
6ee9405
Compare
|
I looked at upstreaming this change. However, this is a part of Stylo where we are currently maintaining quite a large diff, so my patch would not easily apply upstream (I could modify the implementation, but I think that would just cause conflicts when we sync). My proposal is that we land this here (along with the corresponding servo PR), and then I can look at upstreaming all of |
prefers-color-scheme for Servoprefers-color-scheme
| #[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)] | ||
| #[repr(u8)] | ||
| #[allow(missing_docs)] | ||
| pub enum PrefersColorScheme { |
There was a problem hiding this comment.
Emilio prefers sharing these things between Servo and Gecko: https://phabricator.services.mozilla.com/D226265?vs=on&id=932339#inline-1256740
There was a problem hiding this comment.
I actually have code for that already! (which I didn't push because I thought it might be better to do "one thing at a time"). I've pushed it now. Does that seem better?
There was a problem hiding this comment.
Yeah, well, no big deal either way if you prefer to leave that for a follow-up
Servo PR:
prefers-color-schemesupport servo#34423Tested with Blitz:
Screen.Recording.2024-11-28.at.16.07.45.mov