Skip to content

Commit

Permalink
Test changing style tag elements
Browse files Browse the repository at this point in the history
  • Loading branch information
zaynetro committed Jan 21, 2017
1 parent 1b68f79 commit 9760ea2
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/wpt/mozilla/meta/MANIFEST.json
Expand Up @@ -6462,6 +6462,18 @@
"url": "/_mozilla/mozilla/iframe/resize_after_load.html"
}
],
"mozilla/reparse_style_elements.html": [
{
"path": "mozilla/reparse_style_elements.html",
"references": [
[
"/_mozilla/mozilla/reparse_style_elements_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/reparse_style_elements.html"
}
],
"mozilla/restyle-out-of-document.html": [
{
"path": "mozilla/restyle-out-of-document.html",
Expand Down Expand Up @@ -21840,6 +21852,18 @@
"url": "/_mozilla/mozilla/iframe/resize_after_load.html"
}
],
"mozilla/reparse_style_elements.html": [
{
"path": "mozilla/reparse_style_elements.html",
"references": [
[
"/_mozilla/mozilla/reparse_style_elements_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/reparse_style_elements.html"
}
],
"mozilla/restyle-out-of-document.html": [
{
"path": "mozilla/restyle-out-of-document.html",
Expand Down
18 changes: 18 additions & 0 deletions tests/wpt/mozilla/tests/mozilla/reparse_style_elements.html
@@ -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 tests/wpt/mozilla/tests/mozilla/reparse_style_elements_ref.html
@@ -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>

0 comments on commit 9760ea2

Please sign in to comment.