[wpt-sync] Sync PR 47863 - Make @import prelude parsed using the streaming parser.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 47863 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/47863
Details from upstream follow.
Steinar H. Gunderson <sesse@chromium.org> wrote:
Make @import prelude parsed using the streaming parser.
There is one exception still: If there's a media query in there,
it is still parsed using the non-streaming parser. However, the
supports part and the prelude in general are parsed streaming.Note that this fixes a bug (also in the tests) where empty supports(),
or supports() with an invalid declaration inside, would be allowed;
there doesn't seem to be any allowance for this in the grammar
(\<general-enclosed> is not included in the @import grammar, only in
@supports).Bug: 1500904
Change-Id: Ida837291feac344e847b0e3982acff9dd73c7d53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5822594
Commit-Queue: Steinar H Gunderson \<sesse@chromium.org>
Reviewed-by: Anders Hartvoll Ruud \<andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1348630}
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Assignee | ||
Comment 2•6 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Safari on GitHub CI
Total 1 tests and 22 subtests
Status Summary
Firefox
OK
: 1
PASS
: 22
Safari
OK
: 1
PASS
: 22
Links
Comment 4•6 months ago
|
||
bugherder |
Description
•