Re: [csswg-drafts] [css-pseudo] Allow animations on ::first-letter and ::first-line similar to ::marker (#12814)

None of the major engines implement the [fictional tags](https://www.w3.org/TR/css-pseudo-4/#example-7499991d) for nesting per spec, but style based on the innermost container which has `::first-line` styles only:

```html
<!DOCTYPE html>
<style>
  #outer::first-line { color: lime; }
  #inner::first-line { background-color: green; }
</style>
<div id="outer">
  <div id="inner">First line</div>
</div>
```

I think fixing that would be a prerequisite for supporting this in Chrome in a sensible and predictable way.


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


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

Received on Wednesday, 18 February 2026 08:20:25 UTC