Move setattribute_id_restyle_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-15 23:21:52 -04:00
parent 84af16af95
commit b2eaf1cf4f
4 changed files with 25 additions and 1 deletions

View file

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

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

View file

@ -0,0 +1,6 @@
<style>
#foo { background-color: #FF0000; }
</style>
<div id="foo">hello</div>
<div id="foo">world</div>