Closed Bug 1874045 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 43933 - Fix HTML directionality inheritance for empty <bdi> elements with no dir attribute.

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 43933 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/43933
Details from upstream follow.

L. David Baron <dbaron@chromium.org> wrote:

Fix HTML directionality inheritance for empty <bdi> elements with no dir attribute.

This correctly initializes the flag indicating that the HTML
directionality is inherited from the parent for \<bdi> elements, which
behaves like it has dir=auto by default. Even without this change, it
gets initialized correctly when a dir attribute is changed or when the
text content of the element changes.

This also clears the same flag when the dir attribute changes. This
should affect some other cases of dir attribute changes, but we somehow
didn't hit it until fixing the previous bug exposed the problem.

This fixes the failure of a test that I added in
https://github.com/web-platform-tests/wpt/pull/43896 in response to
noticing and fixing an error I made in the HTML spec in
https://github.com/whatwg/html/pull/10005 .

Bug: 576815
Change-Id: I3006d45079694d90dd178f8c439e22f6419bd992
Reviewed-on: https://chromium-review.googlesource.com/5186678
WPT-Export-Revision: 39bf5b2f7380c2de91f720a6954ec1e3423c92b6

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 8 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

FAIL: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/47d17edd3a1e [wpt PR 43933] - Fix HTML directionality inheritance for empty <bdi> elements with no dir attribute., a=testonly https://hg.mozilla.org/integration/autoland/rev/a382e20c59ba [wpt PR 43933] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.