implement recent HTML spec changes to directionality and shadow DOM
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: dbaron, Assigned: vhilla)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete)
Attachments
(5 files)
There were a bunch of recent HTML spec changes related to directionality (and, in small ways, language) and their inheritance and interaction with Shadow DOM. The most substantive changes were in https://github.com/whatwg/html/pull/9796 but there were also other changes that I've linked in the "See Also" field.
Reporter | ||
Updated•9 months ago
|
Updated•8 months ago
|
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Updated•6 months ago
|
Assignee | ||
Comment 2•6 months ago
|
||
Depends on D208337
Assignee | ||
Comment 3•6 months ago
|
||
Depends on D208338
Assignee | ||
Comment 4•6 months ago
|
||
Depends on D208339
Assignee | ||
Comment 5•5 months ago
|
||
Depends on D208338
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Assignee | ||
Comment 6•4 months ago
|
||
Comment 9•3 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/613c14c84d7a
https://hg.mozilla.org/mozilla-central/rev/66a9df8d3bd2
https://hg.mozilla.org/mozilla-central/rev/763a627a0504
https://hg.mozilla.org/mozilla-central/rev/166e0ae30792
https://hg.mozilla.org/mozilla-central/rev/160c9642bf7a
Updated•3 months ago
|
Reporter | ||
Comment 13•2 months ago
|
||
It took longer than I hoped, but I finally had a chance to look at the three tests that were added in this bug that Chromium is failing.
I have fixes for two of them.
But I think this test is testing something that was a mistake in the spec:
https://github.com/web-platform-tests/wpt/blob/b6bca1a1aa8042d6651dc8ac9a0541cd506377b2/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js#L381
If I'm understanding this test correctly, it looks to me like it is assuming that a form element being "auto-directionality form associated" influences the dir=auto
state on other elements. However, I think being "auto-directionality form associated" was intended to influence what dir=auto
does on the element itself, but not have any effect on dir=auto
on ancestors.
However, the spec text has special handling for slot elements because what matters is their assigned nodes and not their children -- but I think that traversal was intended to be like a traversal of children, but differ only in that it traverses the assigned nodes rather than the children. So I think that spec text's reference to the auto directionality of the child is wrong, and the spec probably needs to be fixed to make that traversal (step 2 in https://html.spec.whatwg.org/multipage/dom.html#auto-directionality) behave more like traversal of children.
Does that make sense?
Reporter | ||
Comment 14•2 months ago
|
||
I created https://github.com/whatwg/html/pull/10561 for a spec update, so probably better to discuss there rather than here.
Comment 15•1 month ago
|
||
Asscoiated pull requests
Updated•1 month ago
|
Description
•