Open Bug 1740283 Opened 3 years ago Updated 3 years ago

ShadowDOM should support :lang()

Categories

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

Firefox 96
defect

Tracking

()

UNCONFIRMED

People

(Reporter: 709922234, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached image left: Firefox, right: Chrome (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:100.0) Gecko/20100101 Firefox/100.0

Steps to reproduce:

open https://codepen.io/mantou132/pen/RwZJVLY?editors=1010

Actual results:

Two "test" text style is different

Expected results:

Two "test" text style is same

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Blocks: shadowdom
Summary: Shadowdom should support :lang() → ShadowDOM should support :lang()

I don’t know why, :host(:lang()) works normally in codepen, but not in my application.

https://codepen.io/mantou132/pen/LYjrBpJ?editors=1010

Attached video :host(:lang) not work (deleted) —

Safari behaves the same as Firefox

Is it a nested shadow tree? That'd explain it

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: