mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 534526 part 4. Tests.
This commit is contained in:
parent
02ce03ca1b
commit
6d29cd3275
6
layout/reftests/bugs/534526-1-ref.html
Normal file
6
layout/reftests/bugs/534526-1-ref.html
Normal file
@ -0,0 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<span style="color: green">This should be green</span>
|
||||
</body>
|
||||
</html>
|
12
layout/reftests/bugs/534526-1a.html
Normal file
12
layout/reftests/bugs/534526-1a.html
Normal 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>
|
12
layout/reftests/bugs/534526-1b.html
Normal file
12
layout/reftests/bugs/534526-1b.html
Normal 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>
|
@ -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
|
||||
|
26
layout/reftests/svg/dynamic-attr-change-1.svg
Normal file
26
layout/reftests/svg/dynamic-attr-change-1.svg
Normal 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 |
26
layout/reftests/svg/dynamic-attr-removal-1.svg
Normal file
26
layout/reftests/svg/dynamic-attr-removal-1.svg
Normal 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 |
26
layout/reftests/svg/dynamic-attr-removal-2.svg
Normal file
26
layout/reftests/svg/dynamic-attr-removal-2.svg
Normal 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 |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user