Re: [csswg-drafts] [css-pseudo] Highlight pseudos and forced-color-adjust (#7264)

The CSS Working Group just discussed `[css-pseudo] Highlight pseudos and forced-color-adjust`, and agreed to the following:

* `RESOLVED: forced-color-adjust doesn't do anything on highlight pseudos, and highlight pseudos take their forced color state from the originating element`

<details><summary>The full IRC log of that discussion</summary>
&lt;dbaron> Topic: [css-pseudo] Highlight pseudos and forced-color-adjust<br>
&lt;emilio> (I guess that's what chrishtr just said)<br>
&lt;dbaron> github: https://github.com/w3c/csswg-drafts/issues/7264<br>
&lt;dbaron> dandclark: question about how forced-color-adjust:preserve-parent-color should work with highlight inheritance<br>
&lt;dbaron> dandclark: this interaction is potentially problematic.<br>
&lt;fantasai> emilio, yeah, and it's obnoxious when I try to load a page and it gives me a blank forever even though I know the text is loaded<br>
&lt;dbaron> dandclark: Prereq: consider wether forced-color-adjust should be allowed in highlight pseudos.<br>
&lt;dbaron> dandclark: List of properties.  Currently not allowed there.<br>
&lt;Rossen_> q?<br>
&lt;dbaron> s/Prereq/Prerequisite/<br>
&lt;dbaron> s/List/The spec gives a list/<br>
&lt;dbaron> s/wether/whether/<br>
&lt;dbaron> fantasai: I think the idea of having it not apply and just applying the forced-color-adjust effect of the originating element makes sense to me.<br>
&lt;dbaron> fantasai: I think that was mentioned in the post as a way to deal with this.<br>
&lt;dbaron> dandclark: I think that's a good outcome... seems simplest.<br>
&lt;dbaron> dandclark: For all other color based properties the highlights are sort of an independent cascade.  But I think it makes sense here.  Seems odd that the originating element would take forced colors and the highlights not.<br>
&lt;dbaron> dandclark: If the originating element has forced-color-adjust:preserve-parent-color, what does that mean for highlight pseudos that are active over that originating element?<br>
&lt;dbaron> fantasai: Effect is that the color property is able to inherit from the parent the actual color of the parent... and that doesn't really impact the highlight pseudos ... which doesn't matter for highlight pseudos where the currentcolor keyword comes from the previous layer.  So the keyword wouldn't have an effect.<br>
&lt;dbaron> dandclark: so then try to resolve that forced-color-adjust doesn't do anything on highlight pseudos, and that highlight pseudos take forced color state of originating element<br>
&lt;dbaron> Rossen: Proposed resolution: forced-color-adjust doesn't do anything on highlight pseudos, and highlight pseudos take their forced color state from the originating element<br>
&lt;dbaron> RESOLVED: forced-color-adjust doesn't do anything on highlight pseudos, and highlight pseudos take their forced color state from the originating element<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7264#issuecomment-1130239967 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 18 May 2022 16:36:48 UTC