github web-platform-tests/wpt merge_pr_48929

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
2 months ago

[nesting] Improve WPT coverage for top-level '&' specificity

The '&' selector, when it has no parent selector to draw from,
has a specificity of zero [1].

Blink already does the right thing. This CL just adds a new WPT
to enforce that behavior, and adjusts an existing tests which
expected specificity to be added.

[1] w3c/csswg-drafts#10196

Bug: 343794754
Change-Id: I3bfdba8a5db66be2d2cdd6f1b2f41b86aadbab9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5982912
Reviewed-by: Steinar H Gunderson sesse@chromium.org
Commit-Queue: Anders Hartvoll Ruud andruud@chromium.org
Cr-Commit-Position: refs/heads/main@{#1376861}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.