[mediaqueries-4] order of prefixes

Open
#7,330 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
css
Domain
documentation

Research direction

Read the Media Queries Level 4 range-feature section and the CSS2 vendor-keyword reference linked in the issue, then compare them with the Compat specification's explicit handling of -webkit-device-pixel-ratio. Determine what ordering rule the specification should define and document the chosen behavior in the relevant draft, with the result consistent with existing browser implementations.

Written by the indexing model from the issue text.

Description

mediaqueries-4

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

Dominant language
Bikeshed
Stars
4.9k
Forks
816
Avg merge
2d 18h
Merged PRs (30d)
24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from w3c/csswg-drafts

All issues in w3c/csswg-drafts

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.