Open Bug 1868009 Opened 2 years ago Updated 1 month ago

`::selection`, `::target-text`, `::highlight`, `::spelling-error`, `::grammar-error` style doesn't propagate across shadow boundaries

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 122
defect

Tracking

()

UNCONFIRMED

People

(Reporter: 709922234, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

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

Steps to reproduce:

  1. open https://codepen.io/mantou132/pen/mdvQMwz?editors=0110
  2. select text

Actual results:

text background color not red

Expected results:

text background color is red

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
See Also: → 1455893
Summary: `::selection`, `::target-text` style doesn't propagate across shadow boundaries → `::selection`, `::target-text`, `::highlight` style doesn't propagate across shadow boundaries
Component: DOM: Core & HTML → CSS Parsing and Computation
Severity: -- → S3

Chrome behavior is now the same as Firefox, maybe the specification is like this

chromium fix

Summary: `::selection`, `::target-text`, `::highlight` style doesn't propagate across shadow boundaries → `::selection`, `::target-text`, `::highlight`, `::spelling-error`, `::grammar-error` style doesn't propagate across shadow boundaries
Attached image 20250613-171206.jpg
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: