Bug 534526 part 4. Tests.

This commit is contained in:
Boris Zbarsky 2010-02-23 23:37:47 -05:00
parent 02ce03ca1b
commit 6d29cd3275
8 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<span style="color: green">This should be green</span>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<style>
span { color: green; }
[style*=red] + * { color: red; }
</style>
</head>
<body onload="document.getElementById('x').style.color = 'blue'">
<span id="x" style="color: red"></span><span>This should be green</span>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<style>
span { color: red; }
[style*=red] + * { color: green; }
</style>
</head>
<body onload="document.getElementById('x').style.color = 'red'">
<span id="x" style="color: blue"></span><span>This should be green</span>
</body>
</html>

View File

@ -1375,6 +1375,8 @@ fails HTTP(..) == 518172-2b.html 518172-b-ref.html # bug 518172
== 530686-1.html 530686-1-ref.html
== 531098-1.html 531098-1-ref.html
== 531371-1.html 531371-1-ref.html
== 534526-1a.html 534526-1-ref.html
== 534526-1b.html 534526-1-ref.html
== 534808-1.html 534808-1-ref.html
== 534808-2.html 534808-2-ref.html
== 534919-1.html 534919-1-ref.html

View File

@ -0,0 +1,26 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<style type="text/css">
rect[transform="scale(2)"] { fill: red }
rect { fill: lime; }
</style>
</defs>
<g fill="lime">
<rect id="rect" transform="scale(2)" width="100%" height="100%" />
</g>
<script>
window.addEventListener(
"load",
function() { document.getElementById("rect").setAttributeNS(null, "transform", "scale(1)"); },
false
);
</script>
</svg>

After

Width:  |  Height:  |  Size: 655 B

View File

@ -0,0 +1,26 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<style type="text/css">
rect { fill: lime; }
rect[transform="scale(2)"] { fill: red }
</style>
</defs>
<g fill="lime">
<rect id="rect" transform="scale(2)" width="100%" height="100%" />
</g>
<script>
window.addEventListener(
"load",
function() { document.getElementById("rect").removeAttributeNS(null, "transform"); },
false
);
</script>
</svg>

After

Width:  |  Height:  |  Size: 646 B

View File

@ -0,0 +1,26 @@
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<defs>
<style type="text/css">
rect { fill: red; }
rect:not([transform="scale(2)"]) { fill: lime }
</style>
</defs>
<g fill="lime">
<rect id="rect" transform="scale(2)" width="100%" height="100%" />
</g>
<script>
window.addEventListener(
"load",
function() { document.getElementById("rect").removeAttributeNS(null, "transform"); },
false
);
</script>
</svg>

After

Width:  |  Height:  |  Size: 652 B

View File

@ -27,6 +27,9 @@ include svg-integration/reftest.list
== currentColor-01.svg pass.svg
== currentColor-02.svg pass.svg
== currentColor-03.svg pass.svg
== dynamic-attr-removal-1.svg pass.svg
== dynamic-attr-removal-2.svg pass.svg
== dynamic-attr-change-1.svg pass.svg
== dynamic-conditions-01.svg pass.svg
== dynamic-clipPath-01.svg pass.svg
== dynamic-feFlood-01.svg pass.svg