[wpt-sync] Sync PR 33890 - Add test for :has(:target) change
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33890 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33890
Details from upstream follow.
Mu-An Chiou <me@muanchiou.com> wrote:
Add test for :has(:target) change
Test case: When
:target
changes, CSS properties via:has(:target)
don't seem to be applied.Here's a video demonstrating the problem in Safari Version 15.4 (17613.1.17.1.13).
https://user-images.githubusercontent.com/1153134/166135614-32d261e8-b4ff-48ac-aa5a-9dd10280fa84.mov
As you see the rules are there, but they only appear and the page only updates when I manually edit the stylesheet via inspector.
This doesn't seem to work in Safari nor Chrome with Experimental Web Platform features turned on.
Worth noting though–on the test page, if I manually click the fragment links, the text colors would not update (which is what this test is for). But while running the automatic test, I can see the text color changing, even though the assertions do still fail.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=cfd7201c6d79e2b501f031c3f475da06d1481824
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
FAIL
: 1
Links
Details
New Tests That Don't Pass
- /css/selectors/invalidation/target-pseudo-in-has.html [wpt.fyi]
- CSS Selectors Invalidation: target pseudo in :has() argument:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- CSS Selectors Invalidation: target pseudo in :has() argument:
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6c9e6894cb9a [wpt PR 33890] - Add test for :has(:target) change, a=testonly https://hg.mozilla.org/integration/autoland/rev/69b919f12fe8 [wpt PR 33890] - Update wpt metadata, a=testonly
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6c9e6894cb9a
https://hg.mozilla.org/mozilla-central/rev/69b919f12fe8
Description
•