Fix /html/dom/elements/global-attributes/dir-shadow-39.html
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: vhilla, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
In Bug 1876163, I fixed most of the interop-dir test failures, only dir-shadow-39.html remains.
| Reporter | ||
Comment 1•1 year ago
|
||
The test checks the html and css direction of an element. With the changes from Bug 1876163, the html direction should be correct. I.e. the div in the shadow dom matches the :dir(ltr) selector. What remains is that getComputedStyle(div).direction is empty.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Hi Emilio, iirc, Vincent seemed to believe that we can use some tweaks in CSS to fix this problem. Unfortunately, he is not available to work on this. Is this something you can help or shed some lights? Thank you.
| Assignee | ||
Comment 3•1 year ago
|
||
The reference is just wrong. The spec says that unassigned nodes have no
computed styles (they have nothing to inherit from).
https://drafts.csswg.org/cssom/#dom-window-getcomputedstyle step 5:
If obj is not null, and elt is connected, part of the flat tree, and
...
Unassigned fallback content is not part of the flat tree, so we fail
that check.
Updated•1 year ago
|
Comment 7•1 year ago
|
||
| bugherder | ||
Description
•