[csswg-drafts] Pull Request: [mediaqueries] Lift <media-feature> parens to <media-in-parens> (#6806)

cdoublev has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [mediaqueries] Lift <media-feature> parens to <media-in-parens> (#6806) ==
This PR applies https://github.com/w3c/csswg-drafts/commit/1af56e0fe072307489875cd6456d3c409953bcb0 to MediaQueries 5. This commit was made 3 years ago, after [initiating](https://github.com/w3c/csswg-drafts/commit/2e34611e661fe3a7cb6ce70491ecf44676c6685e) from MediaQueries 4.

Also, the railroad diagram of the updated syntax was not updated accordingly. This PR updates it in both levels of the spec.

---

Without this change, a container size query will match `<general-enclosed>` and evaluate to `unknown`, unless it is specified in two `()`-blocks, because `<query-in-parens>` ([CSS Contain](https://drafts.csswg.org/css-contain-3/#typedef-query-in-parens)) produces `( <size-feature> )`, and `<size-feature>` is defined as *"the same as for a media feature: a feature name, a comparator, and a value"*. (*Note that you do not always have a comparator, eg. `orientation: portrait`*.)

Besides, I assume that [`media-progress(<media-feature>, ...)`](https://drafts.csswg.org/css-values-5/#typedef-media-progress) and [`container-progress(<size-feature>, ...)`](https://drafts.csswg.org/css-values-5/#typedef-container-progress) are supposed to accept/take a query without using a `()`-block.

See https://github.com/w3c/csswg-drafts/pull/10131


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 25 March 2024 15:09:21 UTC