mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Test changing style tag elements
This commit is contained in:
parent
1b68f79468
commit
9760ea2953
3 changed files with 53 additions and 0 deletions
|
@ -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",
|
||||
|
|
18
tests/wpt/mozilla/tests/mozilla/reparse_style_elements.html
Normal file
18
tests/wpt/mozilla/tests/mozilla/reparse_style_elements.html
Normal 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>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue