Bug 1874045 [wpt PR 43933] - Fix HTML directionality inheritance for empty <bdi>...
commitead668d2800f3c12fbc74171791f69193a5ce0cc
authorL. David Baron <dbaron@chromium.org>
Sat, 13 Jan 2024 09:44:34 +0000 (13 09:44 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 15 Jan 2024 09:06:56 +0000 (15 09:06 +0000)
treef2fa895cc866a43f0bd971fb8b60923e6f3c7aa1
parenta8cc490c6937d49d89f8b783e0f5480f7433a2d3
Bug 1874045 [wpt PR 43933] - Fix HTML directionality inheritance for empty <bdi> elements with no dir attribute., a=testonly

Automatic update from web-platform-tests
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/c/chromium/src/+/5186678
Commit-Queue: Mason Freed <masonf@chromium.org>
Reviewed-by: Di Zhang <dizhangg@chromium.org>
Auto-Submit: David Baron <dbaron@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1246176}

--

wpt-commits: 40b49b7273614349e83ad17076bc2c3c5531bb97
wpt-pr: 43933
testing/web-platform/tests/html/semantics/text-level-semantics/the-bdi-element/bdi-auto-dir-default.html