Skip to content

[mediaqueries-4] order of prefixes #7330

@gsnedders

Description

@gsnedders

https://drafts.csswg.org/mediaqueries-4/#mq-min-max defines min/max prefixes for range features.

https://www.w3.org/TR/CSS2/syndata.html#vendor-keywords reserves prefixes for vendor-specific extensions, at least for keywords and property names.

While admitting that media features aren't keywords or property names, the reality is that there are prefixed ones used in the wild (e.g., -webkit-device-pixel-ratio), and we should define somehow how prefixes get applied to device-pixel-ratio.

Should we have min--webkit-device-pixel-ratio or -webkit-min-device-pixel-ratio?

Clearly, the latter is the one that is implemented in every major browser engine, but there's nothing that actually says the prefixes should be applied in that order, and the Compat spec feels a need to make this explicit: https://compat.spec.whatwg.org/#css-media-queries-webkit-device-pixel-ratio

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions