[wpt-sync] Sync PR 38645 - [@scope] Let ::From/To return CSSSelector*, improve serialization
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Depends on 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38645 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38645
Details from upstream follow.
Anders Hartvoll Ruud <andruud@chromium.org> wrote:
[@scope] Let ::From/To return CSSSelector*, improve serialization
This CL prepares for representing the ::From selector as something
that's not a CSSSelectorList (a StyleRule).This also loses the distinction between an empty list and an absent
list, but I don't think we need this distinction. The only practical
consequence is that during serialization we now drop the "to" part
of the prelude if the associated (forgiving) selector list is empty.
But this serialization is actually better, since it more closely
follows the general CSSOM principle of serializing the shortest
representation.Bug: 1280240
Change-Id: Ibb0627b84f98731faf0807699613c44b3a2805e1
Reviewed-on: https://chromium-review.googlesource.com/4274103
WPT-Export-Revision: 90cbdf3c7b7116b272bbe0ca4dc3ea0d2b8fbadf
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
bugherder |
Description
•