Closed Bug 1908067 Opened 1 year ago Closed 1 year ago

Fix /html/dom/elements/global-attributes/dir-shadow-39.html

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
132 Branch
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.

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.

Severity: -- → S3

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.

Flags: needinfo?(emilio)

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.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

The test is just bogus, see comment 2.

Flags: needinfo?(emilio)
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47929 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: