Skip to content

Tracking issue: media queries (css @media(...)) #39068

Open

Description

@nicoburns

Media queries are a very useful feature. Servo has support for the syntax and a general framework for implementing them through Stylo. And it supports a few of the most common query types. However there are a large number of media queries that we don't support.

Spec: https://www.w3.org/TR/mediaqueries-5/
MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Using_media_queries

We have a bug report on Blitz that @media(hover: hover) is required for tailwind: DioxusLabs/blitz#252

List of media queries

This is a list of all of the media query types supported by Gecko. The ones supported by Servo are ticked.

Implementation hints

Our general stratagy thus-far has been to pass data into Stylo via the Device

See these PRs implementing the prefers-color-scheme media query:

Activity

  1. added
    C-upstream
    B-feature-tracking
    on Sep 1, 2025
  2. servo-highfive commented on Sep 1, 2025

    @servo-highfive
  3. removed
    C-upstream
    on Sep 1, 2025
  4. added
    E-less-complex
    on Jun 14, 2026
  5. servo-highfive commented on Jun 14, 2026

    @servo-highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.

    If you intend to work on this issue, then add @servo-highfive: assign me to your comment, and I'll assign this to you. 😄

    Please read our policy on AI contributions before getting started.

  6. sahil0x01 commented on Nov 10, 2026

    @sahil0x01
    Contributor

    @servo-highfive: assign me

  7. added
    C-assigned
    on Nov 10, 2026
  8. servo-highfive commented on Nov 10, 2026

    @servo-highfive

    Hey @sahil0x01! Thanks for your interest in working on this issue. It's now assigned to you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-styloB-feature-trackingC-assignedE-less-complex

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions