Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/wpt/mozilla/tests/mozilla/reparse_style_elements.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>Style elements should be reparsed on change</title> | ||
<link rel="match" href="reparse_style_elements_ref.html"> | ||
<body> | ||
<style> | ||
body { | ||
background-color: red; | ||
} | ||
</style> | ||
|
||
This text should be green and the background should not be red. | ||
|
||
<script> | ||
var s = document.querySelector('body > style'); | ||
s.textContent = 'body { color: green; }'; | ||
</script> | ||
</body> |
11 changes: 11 additions & 0 deletions
11
tests/wpt/mozilla/tests/mozilla/reparse_style_elements_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<body> | ||
<style> | ||
body { | ||
color: green; | ||
} | ||
</style> | ||
|
||
This text should be green and the background should not be red. | ||
</body> |