mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-14 15:37:55 +00:00
19 lines
462 B
HTML
19 lines
462 B
HTML
<!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: "));
|
|
// Flush reflow
|
|
document.body.offsetWidth;
|
|
document.getElementById("t").
|
|
appendChild(document.createTextNode("green }"));
|
|
</script>
|
|
</body>
|
|
</html>
|