mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 04:27:41 +00:00
Test for bug 460240. r=roc
This commit is contained in:
parent
749691e623
commit
212692622f
7
layout/reftests/box-shadow/boxshadow-dynamic-ref.xul
Normal file
7
layout/reftests/box-shadow/boxshadow-dynamic-ref.xul
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<hbox flex="1"
|
||||
style="margin:50px; background:yellow;
|
||||
-moz-box-shadow: 1px 2px 3px black, 0 0 10px white, 0 0 20px rgb(50, 170, 255), 0 0 30px rgb(50, 170, 255);
|
||||
-moz-border-radius: 10px;"/>
|
||||
</window>
|
33
layout/reftests/box-shadow/boxshadow-dynamic.xul
Normal file
33
layout/reftests/box-shadow/boxshadow-dynamic.xul
Normal file
@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet type="text/css" href="data:text/css,
|
||||
|
||||
hbox {
|
||||
margin: 50px;
|
||||
background: yellow;
|
||||
}
|
||||
|
||||
hbox[x] {
|
||||
-moz-box-shadow: 1px 2px 3px black, 0 0 10px white, 0 0 20px rgb(50, 170, 255), 0 0 30px rgb(50, 170, 255);
|
||||
-moz-border-radius: 10px;
|
||||
}
|
||||
|
||||
"?>
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
class="reftest-wait">
|
||||
|
||||
<script>
|
||||
<![CDATA[
|
||||
|
||||
document.documentElement.addEventListener("MozReftestInvalidate",
|
||||
doTest, false);
|
||||
|
||||
function doTest() {
|
||||
document.getElementById("hbox1").setAttribute("x",1);
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<hbox id="hbox1" flex="1"/>
|
||||
</window>
|
@ -11,3 +11,4 @@
|
||||
== boxshadow-inner-basic.html boxshadow-inner-basic-ref.html
|
||||
== boxshadow-mixed.html boxshadow-mixed-ref.html
|
||||
== boxshadow-rounded-spread.html boxshadow-rounded-spread-ref.html
|
||||
HTTP(..) == boxshadow-dynamic.xul boxshadow-dynamic-ref.xul
|
||||
|
Loading…
x
Reference in New Issue
Block a user