bug 383080 - add -moz-image-region reftest, r=roc

git-svn-id: svn://10.0.0.236/trunk@231789 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kairo%kairo.at 2007-08-10 10:43:28 +00:00
parent 12d4d9a89a
commit c5c7743f94
7 changed files with 51 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

View File

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<?xml-stylesheet href="image-region.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="main"
class="reftest-image-region">
<hbox id="ref">
<image id="image1" />
<hbox flex="1000" />
</hbox>
</window>

View File

@ -0,0 +1,19 @@
/*
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
*/
hbox#test > image {
list-style-image: url("image-region.png");
}
hbox#test > #image1 {
-moz-image-region: rect(1px, 19px, 9px, 1px);
}
hbox#ref > image {
list-style-image: none;
}
hbox#ref > #image1 {
list-style-image: url("image-region-ref.png");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

View File

@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<?xml-stylesheet href="image-region.css" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="main"
class="reftest-image-region">
<hbox id="test">
<image id="image1" />
<hbox flex="1000" />
</hbox>
</window>

View File

@ -0,0 +1 @@
== image-region.xul image-region-ref.xul

View File

@ -58,3 +58,6 @@ include z-index/reftest.list
# columns/
include columns/reftest.list
# image-region/
include image-region/reftest.list