Open Bug 2016474 Opened 1 day ago Updated 1 hour ago

[css-conditional-5] "query-less" container query support

Categories

(Core :: CSS Parsing and Computation, enhancement)

Firefox 149
enhancement

Tracking

()

ASSIGNED

People

(Reporter: afrehner.work, Assigned: afrehner.work)

Details

Attachments

(1 file)

Steps to reproduce:

The spec supports the idea of "query-less" / "no query" container queries. To clarify:

https://drafts.csswg.org/css-conditional-5/#container-rule

outlines it as

<container-condition> = [ <container-name>? <container-query>? ]!
<container-name> = <custom-ident>
<container-query> = not <query-in-parens>
          | <query-in-parens> [ [ and <query-in-parens> ]* | [ or <query-in-parens> ]* ]

where <container-query> is now optional. This enables queries like

@container --name {}

to work, and the goal is to simply apply the styles if it is inside a container with that name --name.

WPTs exist here https://github.com/web-platform-tests/wpt/blob/master/css/css-conditional/container-queries/query-container-name.html

I'd like to implement this in Firefox so that it's all wrapped up https://wpt.fyi/results/css/css-conditional/container-queries/query-container-name.html?label=experimental&label=master&aligned

Actual results:

"query-less" container queries don't work

Expected results:

they should work.

The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Assignee: nobody → afrehner.work
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/501819cc6fbb https://hg.mozilla.org/integration/autoland/rev/c8d7baa7ad1f Support name-only container queries, and update WPT results. r=layout-reviewers,firefox-style-system-reviewers,emilio
Pushed by amarc@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c815c3a1f449 https://hg.mozilla.org/integration/autoland/rev/e538258ca7de Revert "Bug 2016474 - Support name-only container queries, and update WPT results. r=layout-reviewers,firefox-style-system-reviewers,emilio" for causing wpt failures @ at-container-serialization.html

Backed out for causing wpt failures

Flags: needinfo?(afrehner.work)

Ah, you need to annotate the extra passes. Please do that and we can get that re-landed. Thanks!

Updated! Thanks.

Flags: needinfo?(afrehner.work)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/e708df318201 https://hg.mozilla.org/integration/autoland/rev/44daa4dd59a9 Support name-only container queries, and update WPT results. r=layout-reviewers,firefox-style-system-reviewers,emilio
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: