mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
21 lines
378 B
HTML
21 lines
378 B
HTML
<!DOCTYPE html>
|
|
<body onload="f()">
|
|
<p>First</p>
|
|
<p>
|
|
<style scoped>
|
|
p { color: green }
|
|
</style>
|
|
<style scoped>
|
|
p { text-decoration: underline }
|
|
</style>
|
|
Second
|
|
</p>
|
|
<p>Third</p>
|
|
<script>
|
|
function f() {
|
|
var style = document.getElementsByTagName("style")[1];
|
|
style.parentNode.removeChild(style);
|
|
}
|
|
</script>
|
|
</body>
|