[wpt-sync] Sync PR 32541 - Add :has() specificity test and fix bug in a test
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox98 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 32541 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/32541
Details from upstream follow.
Byungwoo Lee <blee@igalia.com> wrote:
Add :has() specificity test and fix bug in a test
The specificity of a :has() pseudo-class should be replaced by the
specificity of the most specific complex selector in its selector
list argument. (https://www.w3.org/TR/selectors-4/#specificity-rules)Added a simple test to check the :has() specificity[1], and fixed a
bug in a previous test[2][1] external/wpt/css/selectors/has-specificity.html
[2] external/wpt/css/selectors/invalidation/has-complexity.htmlBug: 669058
Change-Id: Ic59a21f914a5d71e860b18a01902531e3d002d81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3412951
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Byungwoo Lee \<blee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#962970}
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, and Chrome on GitHub CI
Total 2 tests and 7 subtests
Status Summary
Firefox
OK : 2
PASS: 1
FAIL: 10
Chrome
OK : 2
PASS: 1
FAIL: 10
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
/css/selectors/has-specificity.html
:has(.c) < :has(.a.c) == :has(.b.c), so :has(.b.c) wins: FAIL (Chrome: FAIL)
:has(.c) < :has(.a.c), so :has(.a.c) wins: FAIL (Chrome: FAIL)
:has(.c) < :has(.b.c), so :has(.b.c) wins: FAIL (Chrome: FAIL)
:has(child3) < :has(child1 + child2), so :has(child1 + child2) wins: FAIL (Chrome: FAIL)
/css/selectors/invalidation/has-complexity.html
Before appending 25000 elements: FAIL (Chrome: FAIL)
After appending 25000 elements. This should not time out.: FAIL (Chrome: FAIL)
After appending another 25000 elements. This should not time out.: FAIL (Chrome: FAIL)
After appending div with 25000 elements. This should not time out.: FAIL (Chrome: FAIL)
After removing div with 25000 elements. This should not time out.: FAIL (Chrome: FAIL)
After removing 25000 elements one-by-one. This should not time out.: FAIL (Chrome: FAIL)
Comment 4•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/002249cc75ba
https://hg.mozilla.org/mozilla-central/rev/8c90aedd6bb5
Description
•