- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Apr 2023 23:36:44 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-pseudo] Custom properties on :root`. <details><summary>The full IRC log of that discussion</summary> <dael> fantasai: I guess this was question about can we use custom properties on ::selection etc.<br> <dael> fantasai: There's 3 approaches which each have a major downside<br> <fantasai> https://github.com/w3c/csswg-drafts/issues/6641#issuecomment-1404031937<br> <fantasai> body::selection inherits from html::selection<br> <fantasai> not from body itself<br> <dael> fantasai: 1. is to have the root::selection inherit from :root. Highlight pseudo elements inherit through their own tree. body::selection inherits from html::selection<br> <fantasai> :root::selection inherits from :root<br> <dael> fantasai: Option 1 is have root highlights inherit from root.<br> <dael> fantasai: Second is custom prop inherit from originating element where others inherit from highlight parent.<br> <dael> fantasai: 3rd is ignore custom prop on the highlight but when we use var look at originating<br> <dael> fantasai: Downside to 1 is if custom value changes in a highlight tree the subtrees won't know<br> <dael> fantasai: Downside to the second is inherit from 2 sources is hard to implement. I remember it was hard with first-line<br> <dael> fantasai: Downside to 3rd is if you set a custom property on the highlight and use it on the same property it won't look at the value you just set<br> <Rossen_> q?<br> <dael> fantasai: Question to the WG is which approach if any do we want to take<br> <dael> Rossen_: Opinions?<br> <dael> florian: I'm thinking having custom and regular properties inherit differently doesn't play nice with having custom prop polyfill regular ones. That would argue against option 2<br> <dael> florian: All options seem to have author-facing downsides so can't rule based on priority of constituency<br> <dael> Rossen_: Is there a path forward where we can adapt option 3 to work for highlight?<br> <fantasai> https://github.com/w3c/csswg-drafts/issues/6641#issuecomment-1404031937<br> <dael> fantasai: We can make all the options work, question of which has the least downsides<br> <dael> florian: Should we get author feedback and see what they'd find most or least helpful? I'd just be guessing<br> <dael> Rossen_: If that's what's holding us back we might<br> <dael> fantasai: Could be helpful to get feedback from sanketj team b/c more useful for custom highlights than ::selection<br> <dael> sanketj: I think we'll need to look into this a little bit more. No preference right now. We can follow-up<br> <dael> Rossen_: That doesn't inspire confidence to resolve today. We may have to come back to this once there are stronger opinions. Will that work fantasai?<br> <dael> fantasai: I don't think it's urgent, but good to figure out<br> <dael> Rossen_: If it's not ready for resolution let's remove the agenda+ and continue moving forward<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6641#issuecomment-1498285384 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 April 2023 23:36:46 UTC