Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: layout/reftests/bugs/reftest.list
<!DOCTYPE html>
<html>
<head>
<style> * { color: red } </style>
<style id="t"></style>
</head>
<body>
<span class="test">This text should be green</span>
<script>
document.getElementById("t").
appendChild(document.createTextNode("* { color: green }"));
document.getElementById("t").
appendChild(document.createTextNode("* { color: red }"));
// Flush reflow
document.body.offsetWidth;
document.getElementById("t").
removeChild(document.getElementById("t").lastChild);
</script>
</body>
</html>