gecko-dev/layout/reftests/xul/object-fit-scale-down-svg-0...

70 строки
2.2 KiB
Plaintext
Исходник Обычный вид История

Bug 1170052 part 4: Add reftests for object-fit/object-position on XUL <image> element (as modified copies of existing <img> tests). (test-only) --HG-- rename : layout/reftests/w3c-css/submitted/images3/support/colors-16x8-noSize.svg => layout/reftests/xul/colors-16x8-noSize.svg rename : layout/reftests/w3c-css/submitted/images3/support/colors-16x8-parDefault.svg => layout/reftests/xul/colors-16x8-parDefault.svg rename : layout/reftests/w3c-css/submitted/images3/support/colors-16x8.png => layout/reftests/xul/colors-16x8.png rename : layout/reftests/w3c-css/submitted/images3/support/colors-16x8.svg => layout/reftests/xul/colors-16x8.svg rename : layout/reftests/w3c-css/submitted/images3/support/colors-8x16-noSize.svg => layout/reftests/xul/colors-8x16-noSize.svg rename : layout/reftests/w3c-css/submitted/images3/support/colors-8x16-parDefault.svg => layout/reftests/xul/colors-8x16-parDefault.svg rename : layout/reftests/w3c-css/submitted/images3/support/colors-8x16.png => layout/reftests/xul/colors-8x16.png rename : layout/reftests/w3c-css/submitted/images3/support/colors-8x16.svg => layout/reftests/xul/colors-8x16.svg rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001-ref.html => layout/reftests/xul/object-fit-contain-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-001i.html => layout/reftests/xul/object-fit-contain-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002-ref.html => layout/reftests/xul/object-fit-contain-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-png-002i.html => layout/reftests/xul/object-fit-contain-png-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-001-ref.html => layout/reftests/xul/object-fit-contain-svg-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-001i.html => layout/reftests/xul/object-fit-contain-svg-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-002-ref.html => layout/reftests/xul/object-fit-contain-svg-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-002i.html => layout/reftests/xul/object-fit-contain-svg-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-003-ref.html => layout/reftests/xul/object-fit-contain-svg-003-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-003i.html => layout/reftests/xul/object-fit-contain-svg-003.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-004-ref.html => layout/reftests/xul/object-fit-contain-svg-004-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-004i.html => layout/reftests/xul/object-fit-contain-svg-004.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-005-ref.html => layout/reftests/xul/object-fit-contain-svg-005-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-005i.html => layout/reftests/xul/object-fit-contain-svg-005.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-006-ref.html => layout/reftests/xul/object-fit-contain-svg-006-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-contain-svg-006i.html => layout/reftests/xul/object-fit-contain-svg-006.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001-ref.html => layout/reftests/xul/object-fit-cover-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-001i.html => layout/reftests/xul/object-fit-cover-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002-ref.html => layout/reftests/xul/object-fit-cover-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-png-002i.html => layout/reftests/xul/object-fit-cover-png-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-001-ref.html => layout/reftests/xul/object-fit-cover-svg-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-001i.html => layout/reftests/xul/object-fit-cover-svg-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-002-ref.html => layout/reftests/xul/object-fit-cover-svg-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-002i.html => layout/reftests/xul/object-fit-cover-svg-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-003-ref.html => layout/reftests/xul/object-fit-cover-svg-003-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-003i.html => layout/reftests/xul/object-fit-cover-svg-003.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-004-ref.html => layout/reftests/xul/object-fit-cover-svg-004-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-004i.html => layout/reftests/xul/object-fit-cover-svg-004.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-005-ref.html => layout/reftests/xul/object-fit-cover-svg-005-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-005i.html => layout/reftests/xul/object-fit-cover-svg-005.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-006-ref.html => layout/reftests/xul/object-fit-cover-svg-006-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-cover-svg-006i.html => layout/reftests/xul/object-fit-cover-svg-006.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001-ref.html => layout/reftests/xul/object-fit-fill-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-001i.html => layout/reftests/xul/object-fit-fill-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002-ref.html => layout/reftests/xul/object-fit-fill-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-png-002i.html => layout/reftests/xul/object-fit-fill-png-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-001-ref.html => layout/reftests/xul/object-fit-fill-svg-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-001i.html => layout/reftests/xul/object-fit-fill-svg-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-002-ref.html => layout/reftests/xul/object-fit-fill-svg-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-002i.html => layout/reftests/xul/object-fit-fill-svg-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-003-ref.html => layout/reftests/xul/object-fit-fill-svg-003-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-003i.html => layout/reftests/xul/object-fit-fill-svg-003.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-004-ref.html => layout/reftests/xul/object-fit-fill-svg-004-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-004i.html => layout/reftests/xul/object-fit-fill-svg-004.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-005-ref.html => layout/reftests/xul/object-fit-fill-svg-005-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-005i.html => layout/reftests/xul/object-fit-fill-svg-005.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-006-ref.html => layout/reftests/xul/object-fit-fill-svg-006-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-fill-svg-006i.html => layout/reftests/xul/object-fit-fill-svg-006.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001-ref.html => layout/reftests/xul/object-fit-none-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-png-001i.html => layout/reftests/xul/object-fit-none-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002-ref.html => layout/reftests/xul/object-fit-none-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-png-002i.html => layout/reftests/xul/object-fit-none-png-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-001-ref.html => layout/reftests/xul/object-fit-none-svg-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-001i.html => layout/reftests/xul/object-fit-none-svg-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-002-ref.html => layout/reftests/xul/object-fit-none-svg-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-002i.html => layout/reftests/xul/object-fit-none-svg-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-003-ref.html => layout/reftests/xul/object-fit-none-svg-003-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-003i.html => layout/reftests/xul/object-fit-none-svg-003.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-004-ref.html => layout/reftests/xul/object-fit-none-svg-004-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-004i.html => layout/reftests/xul/object-fit-none-svg-004.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-005-ref.html => layout/reftests/xul/object-fit-none-svg-005-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-005i.html => layout/reftests/xul/object-fit-none-svg-005.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-006-ref.html => layout/reftests/xul/object-fit-none-svg-006-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-none-svg-006i.html => layout/reftests/xul/object-fit-none-svg-006.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001-ref.html => layout/reftests/xul/object-fit-scale-down-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-001i.html => layout/reftests/xul/object-fit-scale-down-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002-ref.html => layout/reftests/xul/object-fit-scale-down-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-png-002i.html => layout/reftests/xul/object-fit-scale-down-png-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-001-ref.html => layout/reftests/xul/object-fit-scale-down-svg-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-001i.html => layout/reftests/xul/object-fit-scale-down-svg-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-002-ref.html => layout/reftests/xul/object-fit-scale-down-svg-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-002i.html => layout/reftests/xul/object-fit-scale-down-svg-002.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-003-ref.html => layout/reftests/xul/object-fit-scale-down-svg-003-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-003i.html => layout/reftests/xul/object-fit-scale-down-svg-003.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-004-ref.html => layout/reftests/xul/object-fit-scale-down-svg-004-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-004i.html => layout/reftests/xul/object-fit-scale-down-svg-004.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-005-ref.html => layout/reftests/xul/object-fit-scale-down-svg-005-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-005i.html => layout/reftests/xul/object-fit-scale-down-svg-005.xul rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-006-ref.html => layout/reftests/xul/object-fit-scale-down-svg-006-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-fit-scale-down-svg-006i.html => layout/reftests/xul/object-fit-scale-down-svg-006.xul rename : layout/reftests/w3c-css/submitted/images3/object-position-png-001-ref.html => layout/reftests/xul/object-position-png-001-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-position-png-001i.html => layout/reftests/xul/object-position-png-001.xul rename : layout/reftests/w3c-css/submitted/images3/object-position-png-002-ref.html => layout/reftests/xul/object-position-png-002-ref.html rename : layout/reftests/w3c-css/submitted/images3/object-position-png-002i.html => layout/reftests/xul/object-position-png-002.xul
2015-06-13 03:31:22 +03:00
<?xml version="1.0"?>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
window { padding: 8px; }
image {
border: 1px dashed gray;
padding: 1px;
object-fit: scale-down;
float: left;
}
.bigWide {
width: 52px;
height: 36px;
}
.bigTall {
width: 36px;
height: 52px;
}
.small {
width: 12px;
height: 12px;
}
br { clear: both; }
.tr { object-position: top right }
.bl { object-position: bottom left }
.tl { object-position: top 25% left 25% }
.br { object-position: bottom 1px right 2px }
.tc { object-position: top 3px center }
.cr { object-position: center right 25% }
]]></style>
<hbox>
<!-- big/wide: -->
<image src="colors-8x16.svg" class="bigWide tr"/>
<image src="colors-8x16.svg" class="bigWide bl"/>
<image src="colors-8x16.svg" class="bigWide tl"/>
<image src="colors-8x16.svg" class="bigWide br"/>
<image src="colors-8x16.svg" class="bigWide tc"/>
<image src="colors-8x16.svg" class="bigWide cr"/>
<image src="colors-8x16.svg" class="bigWide"/>
</hbox>
<hbox>
<!-- big/tall: -->
<image src="colors-8x16.svg" class="bigTall tr"/>
<image src="colors-8x16.svg" class="bigTall bl"/>
<image src="colors-8x16.svg" class="bigTall tl"/>
<image src="colors-8x16.svg" class="bigTall br"/>
<image src="colors-8x16.svg" class="bigTall tc"/>
<image src="colors-8x16.svg" class="bigTall cr"/>
<image src="colors-8x16.svg" class="bigTall"/>
</hbox>
<hbox>
<!-- small: -->
<image src="colors-8x16.svg" class="small tr"/>
<image src="colors-8x16.svg" class="small bl"/>
<image src="colors-8x16.svg" class="small tl"/>
<image src="colors-8x16.svg" class="small br"/>
<image src="colors-8x16.svg" class="small tc"/>
<image src="colors-8x16.svg" class="small cr"/>
<image src="colors-8x16.svg" class="small"/>
</hbox>
</window>