- From: 一丝 via GitHub <noreply@w3.org>
- Date: Mon, 10 Nov 2025 08:07:10 +0000
- To: public-css-archive@w3.org
@javifernandez After [CL 7128859](https://chromium-review.googlesource.com/c/chromium/src/+/7128859), Chrome will change the behavior of `-webkit-`. The following test cases will display with a red background instead of the previous green background. I believe this requires adding a WPT test with `ref`.
As mentioned, Chrome only supports empty string names `""` when `-webkit-` is present. In practice, developers are unlikely to write such code, and relevant tools can provide lint checks or warnings to prevent it.
Therefore, I believe Chrome is moving in the right direction.
```html
data:text/html;charset=UTF-8,
<!doctype html>
<style>
@-webkit-keyframes "" {
to {
background: green
}
}
.test {
color: white;
width: 360px;
height: 50px;
margin-top: 10px;
background-color: red;
animation-fill-mode: forwards;
}
</style>
<h3>The following should have a green background:</h3>
<div class="test" style="-webkit-animation: '' 0s forwards;">-webkit-animation</div>
<div class="test" style="-webkit-animation-name: '';">-webkit-animation-name</div>
```
--
GitHub Notification of comment by yisibl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7762#issuecomment-3510030296 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 10 November 2025 08:07:10 UTC