Skip to content

Add remaining preference media queries - #528

Merged
mrobinson merged 1 commit into
servo:mainfrom
TimvdLippe:prefers-media-features
Nov 20, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
TimvdLippe:prefers-media-features

Conversation

@TimvdLippe

@TimvdLippe TimvdLippe commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

This adds prefers-contrast, prefers-reduced-motion, and prefers-reduced-transparency.

Rebased and updated version of #288

Supersedes and closes #288

Servo PR: servo/servo#50095

This adds `prefers-contrast`, `prefers-reduced-motion`, and `prefers-reduced-transparency`.

Rebased and updated version of servo#288

Supersedes and closes servo#288

Co-authored-by: Luke Warlow <[email protected]>
Signed-off-by: Tim van der Lippe <[email protected]>
@mrobinson
mrobinson added this pull request to the merge queue Nov 20, 2026
Merged via the queue into servo:main with commit 7129ad1 Nov 20, 2026
6 checks passed
TimvdLippe added a commit to TimvdLippe/servo that referenced this pull request Nov 20, 2026
…query support

Make Servo compatible with Stylo with extra preference media query support

Obtaining the value from the embedder is left for a follow-up.

This makes Servo recognise `prefers-contrast`, `prefers-reduced-transparency`, `prefers-reduced-motion`.

Stylo PR: servo/stylo#528

Part of servo#39068
Supersedes and closes servo#42011

Co-authored-by: Luke Warlow <[email protected]>
Signed-off-by: Tim van der Lippe <[email protected]>
setoelkahfi pushed a commit to setoelkahfi/servo that referenced this pull request Nov 20, 2026
…query support (servo#50095)

Make Servo compatible with Stylo with extra preference media query
support Obtaining the value from the embedder is left for a follow-up.
This makes Servo recognise `prefers-contrast`,
`prefers-reduced-transparency`, `prefers-reduced-motion`.

Stylo PR: servo/stylo#528
Fixes: Part of servo#39068
Supersedes and closes servo#42011
Supersedes and closes servo#49958

Signed-off-by: Tim van der Lippe <[email protected]>
Co-authored-by: Luke Warlow <[email protected]>
staging-devin-ai-integration Bot pushed a commit to DioxusLabs/blitz that referenced this pull request Nov 28, 2026
- Handle DisplayOutside::InternalRuby and the ruby/webkit-box DisplayInside
  variants, now compiled for Servo (servo/stylo#539)
- Map the modern AlignmentBaseline values, now compiled for Servo behind
  layout.css.baseline-metric.modern.enabled (servo/stylo#535)
- Pass a per-document random() hasher key to Device::new (servo/stylo#520)
- Fill the new prefers-contrast/-reduced-motion/-reduced-transparency
  MediaData fields with NoPreference (servo/stylo#528)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants