mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move setattribute_id_restyle_a.html to wpt reftests.
This commit is contained in:
parent
84af16af95
commit
b2eaf1cf4f
4 changed files with 25 additions and 1 deletions
|
@ -579,6 +579,18 @@
|
|||
"url": "/_mozilla/css/flex_nochild.html"
|
||||
}
|
||||
],
|
||||
"css/setattribute_id_restyle_a.html": [
|
||||
{
|
||||
"path": "css/setattribute_id_restyle_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/setattribute_id_restyle_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/setattribute_id_restyle_a.html"
|
||||
}
|
||||
],
|
||||
"css/setpropertypriority.html": [
|
||||
{
|
||||
"path": "css/setpropertypriority.html",
|
||||
|
@ -2636,6 +2648,18 @@
|
|||
"url": "/_mozilla/css/flex_nochild.html"
|
||||
}
|
||||
],
|
||||
"css/setattribute_id_restyle_a.html": [
|
||||
{
|
||||
"path": "css/setattribute_id_restyle_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/setattribute_id_restyle_b.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/setattribute_id_restyle_a.html"
|
||||
}
|
||||
],
|
||||
"css/setpropertypriority.html": [
|
||||
{
|
||||
"path": "css/setpropertypriority.html",
|
||||
|
|
13
tests/wpt/mozilla/tests/css/setattribute_id_restyle_a.html
Normal file
13
tests/wpt/mozilla/tests/css/setattribute_id_restyle_a.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<link rel='match' href='setattribute_id_restyle_b.html'>
|
||||
<style>
|
||||
#foo { background-color: #FF0000; }
|
||||
</style>
|
||||
|
||||
<div>hello</div>
|
||||
<div id="">world</div>
|
||||
|
||||
<script>
|
||||
var divs = document.getElementsByTagName('div');
|
||||
divs[0].setAttribute('id', 'foo');
|
||||
divs[1].setAttribute('id', 'foo');
|
||||
</script>
|
|
@ -0,0 +1,6 @@
|
|||
<style>
|
||||
#foo { background-color: #FF0000; }
|
||||
</style>
|
||||
|
||||
<div id="foo">hello</div>
|
||||
<div id="foo">world</div>
|
Loading…
Add table
Add a link
Reference in a new issue