Skip to content

Support color-scheme in Servo - #438

Merged
mrobinson merged 1 commit into
servo:mainfrom
TimvdLippe:support-color-scheme
Aug 7, 2026
Merged

Support color-scheme in Servo#438
mrobinson merged 1 commit into
servo:mainfrom
TimvdLippe:support-color-scheme

Conversation

@TimvdLippe

@TimvdLippe TimvdLippe commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

With these changes, both the color-scheme CSS property is supported, as well as the required logic to act upon it.

Supersedes and closes #411

Servo PR: servo/servo#47042

@mrobinson

Copy link
Copy Markdown
Member

Is there a corresponding Servo PR for this change? Typically for Stylo PRs they should have a link to a Servo PR unless it is guaranteed to not change test results / affect the build.

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

It's still a draft as I ran out of time to create the Servo PR. Once I have that finished, I will mark this PR as ready

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

Stylo is currently being upgraded in servo/servo#46987 which means that test results will be muddied by the upgrade. Will wait on that

Comment thread style/device/servo.rs Outdated
With these changes, both the `color-scheme` CSS property
is supported, as well as the required logic to act upon it.

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
@TimvdLippe
TimvdLippe force-pushed the support-color-scheme branch from 32bab7f to 7bfc5f0 Compare August 7, 2026 13:00
@TimvdLippe

Copy link
Copy Markdown
Contributor Author

Keeping this as draft until the Stylo upgrade has completed

@nicoburns

Copy link
Copy Markdown
Collaborator

I'm interested in what Servo-side changes will be required for this. My tentative conclusion when I looked into this was that it might actually work entirely within Stylo (aside from the already existing theme support on the Device).

@TimvdLippe

Copy link
Copy Markdown
Contributor Author

These were the required changes: servo/servo#47042 (at least the ones I figured out up to this point)

@nicoburns

Copy link
Copy Markdown
Collaborator

Ah ok, just CSS and test expectation changes. Makes sense.

@Loirooriol

Copy link
Copy Markdown
Collaborator

Keeping this as draft until the Stylo upgrade has completed

No need to wait, I can just cherry-pick it if it lands first

@TimvdLippe
TimvdLippe marked this pull request as ready for review August 7, 2026 16:01
@TimvdLippe

Copy link
Copy Markdown
Contributor Author

Okay cool. In that case, both PRs are ready for review. But I think everybody basically approves already 😂

@mrobinson
mrobinson added this pull request to the merge queue Aug 7, 2026
Merged via the queue into servo:main with commit f6d1d52 Aug 7, 2026
5 checks passed
@TimvdLippe
TimvdLippe deleted the support-color-scheme branch August 7, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants