Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/crashtests/chrome-bug-493952652.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<style>
/*
Evaluation of [style] will add a new attribute to the element,
as lazy style gets synchronized. However, the bucketing will be
on input type, so we do not synchronize the attributes _before_
iteration.
*/
input[style][type="text"] {}
</style>
<style>
/*
For the second stylesheet, when checking the type="" value string,
we must not use a reference into the old attributes.
*/
input[style][type="text"] {}
</style>
</head>
<body>
<input id="target" type="text"></input>
<script>
document.getElementById('target').style.color = 'red';
</script>
</body>