Closed Bug 1818189 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 38645 - [@scope] Let ::From/To return CSSSelector*, improve serialization

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
112 Branch
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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/20be5de59599 [wpt PR 38645] - [@scope] Let ::From/To return CSSSelector*, improve serialization, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
You need to log in before you can comment on or make changes to this bug.