With CSS Highlight Inheritance, the CSS Highlight pseudo classes, such as ::selection and ::highlight, inherit their properties through the pseudo highlight chain, rather than the element chain. The result is a more intuitive model for inheritance of properties in highlights. Specifically, "When any supported property is not given a value by the cascade ... its specified value is determined by inheritance from the corresponding highlight pseudo-element of its originating element’s parent element." (https://drafts.csswg.org/css-pseudo-4/#highlight-cascade)
The feature is still under implementation in other browser engines, but the standards are well developed and there is general agreement on the spec. I think compat risk is very limited at this time.
None.
No. This reflects the already active behavior for ::selection in Firefox and the already used behavior for ::highlight, ::spelling and ::grammar.
There are no security risks.
None
Devtools supports highlight pseudos and correctly shows the inheritance chain.
There are no cross-platform issues with implementation and no reason to discriminate on platform.
https://wpt.fyi/results/css/css-pseudo?label=experimental&label=master&aligned highlight-cascade-* covers this functionality. There are additional WPT that make use of the feature in https://wpt.fyi/results/css/css-highlight-api?label=experimental&label=master&aligned
The feature was enabled as experimental way back in M111 and stayed that way until M116 when it was switched back to test, and it is back on experimental for M118. Developers have significant experience with the feature enabled via experimental web platform features. There is no value to running a finch trial given the large amount of existing experience with the feature.
Shipping on desktop | 120 |
DevTrial on desktop | 118 |
Shipping on Android | 120 |
DevTrial on Android | 118 |
Shipping on WebView | 120 |
Contact emails
sche...@chromium.orgSpecification
https://drafts.csswg.org/css-pseudo-4/#highlight-cascadeSummary
With CSS Highlight Inheritance, the CSS Highlight pseudo classes, such as ::selection and ::highlight, inherit their properties through the pseudo highlight chain, rather than the element chain. The result is a more intuitive model for inheritance of properties in highlights. Specifically, "When any supported property is not given a value by the cascade ... its specified value is determined by inheritance from the corresponding highlight pseudo-element of its originating element’s parent element." (https://drafts.csswg.org/css-pseudo-4/#highlight-cascade)
Blink component
Blink>CSSTAG review
None
TAG review status
Not applicableRisks
Interoperability and Compatibility
The feature is still under implementation in other browser engines, but the standards are well developed and there is general agreement on the spec. I think compat risk is very limited at this time.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQfdRQU81Cdm2phXD9f4wktm4f%2BReeYJaYVZKLrt_T4rg%40mail.gmail.com.
Non-finch justification
The feature was enabled as experimental way back in M111 and stayed that way until M116 when it was switched back to test, and it is back on experimental for M118. Developers have significant experience with the feature enabled via experimental web platform features. There is no value to running a finch trial given the large amount of existing experience with the feature.
Requires code in //chrome?
FalseEstimated milestones
Shipping on desktop 120 DevTrial on desktop 118
Shipping on Android 120 DevTrial on Android 118
Shipping on WebView 120 Anticipated spec changes
NoneLink to entry on the Chrome Platform Status
https://chromestatus.com/feature/5090853643354112Links to previous Intent discussions
Ready for Trial: https://groups.google.com/a/chromium.org/g/blink-dev/c/BbvI5VAguvkThis intent message was generated by Chrome Platform Status.
--
On Tue, Oct 31, 2023 at 1:45 PM Stephen Chenney <sche...@chromium.org> wrote:Contact emails
sche...@chromium.orgSpecification
https://drafts.csswg.org/css-pseudo-4/#highlight-cascadeSummary
With CSS Highlight Inheritance, the CSS Highlight pseudo classes, such as ::selection and ::highlight, inherit their properties through the pseudo highlight chain, rather than the element chain. The result is a more intuitive model for inheritance of properties in highlights. Specifically, "When any supported property is not given a value by the cascade ... its specified value is determined by inheritance from the corresponding highlight pseudo-element of its originating element’s parent element." (https://drafts.csswg.org/css-pseudo-4/#highlight-cascade)
Blink component
Blink>CSSTAG review
NoneFeatures are exempt from a TAG review only when another vendor has already shipped them. That doesn't seem to be the case here.
TAG review status
Not applicableRisks
Interoperability and Compatibility
The feature is still under implementation in other browser engines, but the standards are well developed and there is general agreement on the spec. I think compat risk is very limited at this time.
Does this feature change the behavior of existing uses of ::highlight and ::selection? Is there risk from breakage there?
On Wed, Nov 1, 2023 at 11:11 AM Stephen Chenney <sche...@chromium.org> wrote:Answers inline. Regarding Ander's comment on the current base_feature setting: I'll fix that.Cheers,Stephen.On Wed, Nov 1, 2023 at 4:17 AM Yoav Weiss <yoav...@chromium.org> wrote:On Tue, Oct 31, 2023 at 1:45 PM Stephen Chenney <sche...@chromium.org> wrote:Contact emails
sche...@chromium.orgSpecification
https://drafts.csswg.org/css-pseudo-4/#highlight-cascadeSummary
With CSS Highlight Inheritance, the CSS Highlight pseudo classes, such as ::selection and ::highlight, inherit their properties through the pseudo highlight chain, rather than the element chain. The result is a more intuitive model for inheritance of properties in highlights. Specifically, "When any supported property is not given a value by the cascade ... its specified value is determined by inheritance from the corresponding highlight pseudo-element of its originating element’s parent element." (https://drafts.csswg.org/css-pseudo-4/#highlight-cascade)
Blink component
Blink>CSSTAG review
NoneFeatures are exempt from a TAG review only when another vendor has already shipped them. That doesn't seem to be the case here.The feature is in the CSS pseudos spec and has been for quite a while. The CSS Working Group has been discussing issues too and Safari, at least, is implementing according to the spec. I think the ship has sailed for any major revision to the behavior. (For context, there was no feature defined for this change until recently because it was originally viewed as a "make the code implement the spec" change.)
Thanks for the detailed explanation of compat and for filing a
TAG review. The risk of breakage seems low (and I suppose we'll
learn how true that is as the change rides the trains), and
breakage in this case would just be cosmetic (unless someone is
doing something really clever).
LGTM1 to ship. Good luck. :)
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQV-S4-w5nen9dWqeGRjSx_ietab3MzfF%2B-UdikH-8Hmw%40mail.gmail.com.
LGTM2
You may want to ping the Mozilla standards position issue and let them know that we are close to shipping. It looks like they forgotten it.
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b0b3fb6e-bc93-4823-a9e8-d3e7f8e4a388%40chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQfdRQU81Cdm2phXD9f4wktm4f%2BReeYJaYVZKLrt_T4rg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQV-S4-w5nen9dWqeGRjSx_ietab3MzfF%2B-UdikH-8Hmw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
LGTM3
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQfdRQU81Cdm2phXD9f4wktm4f%2BReeYJaYVZKLrt_T4rg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAGsbWzQV-S4-w5nen9dWqeGRjSx_ietab3MzfF%2B-UdikH-8Hmw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Thanks for the update. I might have jinxed it when I said
"breakage in this case would just be cosmetic (unless someone is
doing something really clever)"... I hadn't considered editor use
cases.
Do you think this will ever be shippable, even with a gutenberg
update? I would imagine old versions stick around for a very long
time.