Open Bug 1694053 Opened 3 years ago Updated 22 days ago

Implement the ::target-text, ::spelling-error, and ::grammar-error pseudo-elements

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

People

(Reporter: bramus, Unassigned)

References

(Blocks 3 open bugs)

Details

(Keywords: dev-doc-needed, parity-chrome, parity-safari)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4424.0 Safari/537.36

Steps to reproduce:

CSS Pseudo-Elements Module Level 4 introduces the the ::selection, ::target-text, ::spelling-error, and ::grammar-error pseudo-elements. These should be implemented.

Spec: https://drafts.csswg.org/css-pseudo-4/#highlight-selectors

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Selection' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → DOM: Selection
Product: Firefox → Core
Component: DOM: Selection → Layout

The ::selection pseudo-element is already supported in Firefox, so it can probably be removed from this bug’s title.

Blocks: css-pseudo-4
Keywords: dev-doc-needed
Summary: Implement the ::selection, ::target-text, ::spelling-error, and ::grammar-error pseudo-elements → Implement the ::target-text, ::spelling-error, and ::grammar-error pseudo-elements

While ::target-text is a highlight pseudo-element, it is quite different from ::spelling-error and ::grammar-error. So it should probably be moved into its own bug. What do you think, Daniel?

Sebastian

Flags: needinfo?(dholbert)

This bug is probably fine, we can file dependent bugs if we're only going to implement some of them.

Flags: needinfo?(dholbert)
Status: UNCONFIRMED → NEW
Ever confirmed: true

::target-text was implemented in Bug 1867939

Depends on: 1867939
You need to log in before you can comment on or make changes to this bug.