Open Bug 1779614 Opened 3 years ago Updated 3 years ago

[wpt-sync] Sync PR 34849 - @container rules should support not without parentheses

Categories

(Core :: Layout, task, P4)

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 34849 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/34849
Details from upstream follow.

Devon Govett <devongovett@gmail.com> wrote:

@container rules should support not without parentheses

See https://github.com/w3c/csswg-drafts/issues/7203#issuecomment-1183737711

The grammar in the spec requires that not be treated as part of the container condition rather than as part of the name, and parentheses are not required. This updates one previous test that was incorrect, and adds a new one. A new helper was necessary because test_query_valid also adds a second rule with more complex logic that wouldn't work in this case.

Component: web-platform-tests → Layout
Product: Testing → Core
You need to log in before you can comment on or make changes to this bug.