- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 15 Dec 2021 18:25:24 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Paired Cascading of Highlight color/bgcolor`, and agreed to the following: * `RESOLVED: Author origin rules, and not user-origin rules, trigger paired cascade fallback` <details><summary>The full IRC log of that discussion</summary> <fantasai_> Topic: Paired Cascading of Highlight color/bgcolor<br> <fantasai_> github: https://github.com/w3c/csswg-drafts/issues/6386<br> <fantasai_> delan: for compat reasons, highlights have a "paired cascade", at least for ::selection (but we decided to apply to all)<br> <fantasai_> delan: for background-color and color<br> <fantasai_> delan: if you have some browser default colors for ::selection, e.g. white on blue<br> <fantasai_> delan: if you then go and set one of those two properties, then both of the defaults get suppressed<br> <delan> ::selection { background: yellow; }<br> <fantasai_> delan: defaulting to their initial value<br> <fantasai_> delan: e.g. if you set selection's background to yellow, then the default foreground color at used value time is no longer going to be white<br> <fantasai_> delan: This issue was pretty big, I asked 7 questions about it in the issue<br> <fantasai_> delan: pretty much none of the questions have disagreement in the issue<br> <fantasai_> delan: the main open question is, which origins should this apply to?<br> <fantasai_> delan: Original spec text says that when author sets one of these two properties, then we suppress highlight color<br> <fantasai_> delan: but there's also animation and transition origins, and also user orgin<br> <fantasai_> delan: will talk about aimation and transition first<br> <fantasai_> delan: I think it doesn't matter whether animation or transition is included in this rule or not<br> <fantasai_> delan: we used to think it mattered for consistency with 'appearance', but I realized it doesn't matter because the animation and transition properties are not applicable for highlights<br> <fantasai_> delan: so as far as I'm aware, can't use them in highlights<br> <fantasai_> emilio: I think ?? you should be able to<br> <fantasai_> emilio: don't know if propertly supported, though<br> <fantasai_> dholbert: can a property that is inherited be animated or transitioned?<br> <fantasai_> delan: Wondering if it is allowed by the spec right now<br> <fantasai_> delan: if not allowed, then doesn't matter whether those origins included in this rule<br> <fantasai_> delan: at least until they become allowed<br> <fantasai_> florian: I believe delan is right, not part of the list of allowed properties<br> <fantasai_> delan: no way for some way for them to sneak in, despite being applicable properties?<br> <fantasai_> florian: I don't think we designed one<br> <delan> s/being/not being/<br> <fantasai_> dholbert: if animate color of parent, and it inherits through?<br> <dholbert> s/dholbert/emilio/<br> <fantasai_> fantasai_: That wouldn't be in the animation or transition origin on the highlight itself<br> <fantasai_> delan: if not possible to come into highlight overlay, and it doesn't matter<br> <fantasai_> florian: I think we should talk some other day whether they should, but until they do...<br> <fantasai_> delan: For the user origin, I did some playing around with user style sheets<br> <fantasai_> delan: afaict, the question here about user origin and paired cascade comes down to<br> <fantasai_> delan: if the user sets one of the two properties (bg color or color) in their user style sheet<br> <fantasai_> delan: do we want that to suppress the UA default for the other property or do we want it to not suppress it and leave the other property as UA-default<br> <fantasai_> florian: Can implementations guide us? This rule was just for compat<br> <fantasai_> emilio: I don't think there's any compat requirements on user origin<br> <fantasai_> emilio: User origins don't disable appearance, so let's follow that precedent<br> <fantasai_> fantasai_: My reading is that we really don't care, so we should do whatever is easiest<br> <fantasai_> delan: works out<br> <fantasai_> delan: even if you go with compat angle, it doesn't suppress default UA colors in Firefox<br> <fantasai_> Rossen: other opinions?<br> <fantasai_> RESOLVED: Author origin rules, and not user-origin rules, trigger paired cascade fallback<br> <fantasai_> delan: In the issue, we all agree on the other 7 questions<br> <fantasai_> delan: do we need resolutions?<br> <fantasai_> fantasai_: IIRC they're minor enough that I'd close them under Editor Discretion<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6386#issuecomment-995053992 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 15 December 2021 18:25:26 UTC