browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

Add CSS Highlight Inheritance

Open bramus opened this issue 1 year ago • 6 comments
trafficstars

(👋 Hi, Chrome DevRel here)

With CSS Highlight Inheritance, the CSS Highlight pseudo classes inherit their properties through the pseudo highlight chain, rather than the element chain.

This applies to all Highlight Pseudo Elements: ::selection, ::target-text, ::spelling-error, and ::grammar-error.

Spec: https://drafts.csswg.org/css-pseudo-4/#highlight-cascade CSSWG Resolution: https://github.com/w3c/csswg-drafts/issues/2474#issuecomment-380369965

This PR adds this information as a separate block, because in Chrome this wasn’t always the case.

bramus avatar Feb 13 '24 20:02 bramus

Feature in Chrome was put on hold. Marking PR as draft.

bramus avatar Feb 19 '24 08:02 bramus

Hey @bramus, just checking in to see what the status of this is!

queengooborg avatar Jun 05 '24 11:06 queengooborg

👋🏻 Shall we close this one until we're ready to revisit it?

bsmth avatar Jun 11 '24 12:06 bsmth

Apologies, I was out conferencing the past 4 weeks and was mainly preoccupied with that.

With the CSSWG we resolved on a new/adjusted behavior and this has been implemented in Chrome. It’s scheduled to ship in Chrome 130 – https://chromestatus.com/feature/5090853643354112

bramus avatar Jun 11 '24 14:06 bramus

OK great, thanks for the update! Timeline from https://chromestatus.com/roadmap:

Chrome 130 Beta coming Sep 18 - Oct 3 Stable (Oct 9, 2024)

bsmth avatar Jun 17 '24 11:06 bsmth

I’ll follow-up to make sure the version numbers here are up-to-date and mark as active again once 130 shows up in browsers/chrome.json

bramus avatar Jun 17 '24 11:06 bramus