- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Mar 2025 14:13:14 +0000
- To: public-css-archive@w3.org
> What happens if the old & new states have the same custom property with different values? Checking how things are now, the VT pseudos – quite obviously – inherit their custom props from the new state of the `:root` because the DOM underneath already got changed _([demo](https://codepen.io/bramus/pen/EaxWzyd/3d8ecf1648a788077f7a749f18bf14b5))_. So you could say that all pseudos should only see the values from the new state. > I would like to point out that CSS pre-processors do expect to be able to set custom properties on the pseudo itself, regardless of how we define other inheritance models. Setting custom props on the pseudo itself is already possible. These also nicely inherit from outer `::view-transition-*` pseudos onto inner `::view-transition-*` pseudos ([demo](https://codepen.io/bramus/pen/bNGqyoW/b867c944e633258b3b255144694d3a76)) -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11153#issuecomment-2697775507 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 4 March 2025 14:13:15 UTC