[wpt-sync] Sync PR 64100 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326761
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64100 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64100
Details from upstream follow.
Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=326761
WebKit export from bug: :<!---->dir(<!---->)<!----> of a \<<!---->bdi><!----> without a dir attribute takes its ancestor'<!---->s direction when the ancestor'<!---->s dir changes
<pre>
:dir() of a <bdi> without a dir attribute takes its ancestor's direction when the ancestor's dir changesThis patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
When an element's dir attribute changes, updateEffectiveTextDirectionOfDescendants()
propagates the new direction to its descendants, stopping only at elements whose dir
attribute is in a valid state. A <bdi> element with no dir attribute behaves as
dir=auto, so its directionality comes from its own contents, not from its parent.
Because the walk didn't stop at it, the <bdi> and its subtree took the ancestor's
direction and matched the wrong :dir() pseudo-class. updateHasDirAutoFlagForSubtree()
already skips <bdi> elements for this reason.Skip <bdi> elements and their subtrees in updateEffectiveTextDirectionOfDescendants().
WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=326761">https://bugs.webkit.org/show_bug.cgi?id=326761</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/323439@main">https://commits.webkit.org/323439@main</a>
</pre>
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Comment 1•26 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=113894
| Assignee | ||
Comment 2•25 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 34 tests and 30 subtests
Status Summary
Firefox
OK : 1[GitHub] 32[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 4[GitHub] 125[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 126[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 7
Chrome
OK : 1
PASS: 4
Safari
OK : 1
FAIL: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/selectors/pseudo-classes/focus.html [wpt.fyi]:
SKIP - /html/semantics/selectors/pseudo-classes/disabled.html [wpt.fyi]
- ':disabled' should match elements that are appended to a disabled fieldset dynamically:
FAIL
- ':disabled' should match elements that are appended to a disabled fieldset dynamically:
- /html/semantics/selectors/pseudo-classes/input-checkbox-switch.tentative.window.html [wpt.fyi]
- Switch control does not match :indeterminate:
FAIL - Checkbox that is no longer a switch control does match :indeterminate:
FAIL - Checkbox that becomes a switch control does not match :indeterminate:
FAIL - Parent of a checkbox that becomes a switch control does not match :has(:indeterminate):
FAIL - A switch control that becomes a checkbox in a roundabout way:
FAIL
- Switch control does not match :indeterminate:
- /html/semantics/selectors/pseudo-classes/required-optional-hidden.html [wpt.fyi]
- Evaluation of :required and :optional changes for input type change.:
FAIL
- Evaluation of :required and :optional changes for input type change.:
Tests Disabled in Gecko Infrastructure
Comment 4•17 days ago
|
||
| bugherder | ||
Description
•