Re: [csswg-drafts] [selectors][css-transitions-2] `:starting-style` pseudo-class (#10356)

The first prototype used a pseudo-class.  I think the discussion starting from https://github.com/w3c/csswg-drafts/issues/8174#issuecomment-1451132927 may be informative as to how we ended up with the at-rule.  I think one of the big reasons to move away from that was that it was really confusing what things like `div:initial p` would mean and whether there was a reasonable way to make it mean something that matched expectations for what authors of CSS would expect it to mean.

I agree that we ended up with a solution that requires a bunch of repetition that I'm not happy about.

I wonder if a pseudo-element might have been a better balance.  That was the one of the three things discussed that never got prototyped...

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10356#issuecomment-2121158693 using your GitHub account


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

Received on Monday, 20 May 2024 20:30:49 UTC