Re: [csswg-drafts] [css-animations-2, css-transitions-2] Entry and exit animations for top-layer elements (#8189)

> > I thought the concept of "UA-private except for transitions" seemed odd at first, but I suppose it could be expressed as adding a UA rule (before the other rules):
> 
> Good idea! I think this should work, because transitions are at the [highest priority of the cascade](https://drafts.csswg.org/css-cascade/#cascade-origin). It would also avoid introducing a new "UA private" concept, which is a plus.

What prevents developers from applying an animation like:

```css
@keyframes foo {
 from, to { top-layer: browser }
}

.foo {
 animation: foo 1s infinite paused both; /* actually any of these keywords by itself works too */
}
```

to put elements in the top-layer?

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


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

Received on Wednesday, 11 January 2023 17:35:06 UTC