зеркало из https://github.com/mozilla/pjs.git
Bug 534526 part 4. Tests.
This commit is contained in:
Родитель
4d932127eb
Коммит
510e7f25ce
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<span style="color: green">This should be green</span>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
|
@ -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
|
||||
|
|
|
@ -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>
|
После Ширина: | Высота: | Размер: 655 B |
|
@ -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>
|
После Ширина: | Высота: | Размер: 646 B |
|
@ -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>
|
После Ширина: | Высота: | Размер: 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
|
||||
|
|
Загрузка…
Ссылка в новой задаче