Bug 1205630 - Reftest. r=mstange

--HG--
extra : source : d0976cc8e78c7fc1055ec6047335462d20289353
This commit is contained in:
Botond Ballo 2015-09-28 13:15:37 -04:00
Родитель 44e7a6c15d
Коммит ddcc515c2e
3 изменённых файлов: 81 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,44 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Testcase</title>
<style>
body {
margin: 0px;
padding: 0px;
}
#inner {
width: 100px;
height: 100px;
background: linear-gradient(red, blue) no-repeat;
background-position: -50px -50px;
background-size: 800px 800px;
}
#outer {
margin: 50px 50px 0;
width: 100px;
height: 100px;
clip-path: url(#path);
position: fixed;
}
</style>
</head>
<body>
<div id="outer">
<div id="inner"></div>
</div>
<svg height="0">
<defs>
<clipPath id="path" clipPathUnits="objectBoundingBox">
<circle cx="0.5" cy="0.5" r="0.5"/>
</clipPath>
</defs>
</svg>
</body>
</html>

Просмотреть файл

@ -0,0 +1,36 @@
<?xml version="1.0"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<!-- Test that a fixed background layer inside an inactive layer tree
is clipped correctly. Here, the inactive layer tree is created by
the SVGEffects display item built for the clip-path on the outer div.
The bug only reproduces in XUL because fixed backgrounds are only
layerized if their animated geometry root is the root frame, but
in HTML there's always an enclosing HTML scroll frame. -->
<style xmlns="http://www.w3.org/1999/xhtml"><![CDATA[
#inner {
width: 100px;
height: 100px;
background: linear-gradient(red, blue) no-repeat fixed;
background-size: 800px 800px;
}
#outer {
margin: 50px 50px 0;
width: 100px;
height: 100px;
clip-path: url(#path);
position: fixed;
}
]]></style>
<div xmlns="http://www.w3.org/1999/xhtml" id="outer">
<div xmlns="http://www.w3.org/1999/xhtml" id="inner"></div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" height="0">
<defs>
<clipPath id="path" clipPathUnits="objectBoundingBox">
<circle cx="0.5" cy="0.5" r="0.5"/>
</clipPath>
</defs>
</svg>
</window>

Просмотреть файл

@ -8,6 +8,7 @@ skip-if(cocoaWidget) skip-if((B2G&&browserIsRemote)||Mulet) == accesskey.xul acc
fails-if(cocoaWidget) skip-if((B2G&&browserIsRemote)||Mulet) fuzzy-if(xulRuntime.widgetToolkit=="gtk3",1,11) == tree-row-outline-1.xul tree-row-outline-1-ref.xul # Initial mulet triage: parity with B2G/B2G Desktop
skip-if((B2G&&browserIsRemote)||Mulet) != tree-row-outline-1.xul tree-row-outline-1-notref.xul # Initial mulet triage: parity with B2G/B2G Desktop
skip-if((B2G&&browserIsRemote)||Mulet) == text-small-caps-1.xul text-small-caps-1-ref.xul # Initial mulet triage: parity with B2G/B2G Desktop
skip-if((B2G&&browserIsRemote)||Mulet) == inactive-fixed-bg-bug1205630.xul inactive-fixed-bg-bug1205630-ref.html
# Tests for XUL <image> with 'object-fit' & 'object-position':
# These tests should be very similar to tests in our w3c-css/submitted/images3