Test changing style tag elements

This commit is contained in:
Roman Zaynetdinov 2017-01-09 18:47:08 +02:00
parent 1b68f79468
commit 9760ea2953
3 changed files with 53 additions and 0 deletions

View file

@ -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",
@ -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",

View file

@ -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>

View file

@ -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>