Bug 1464113 Part 2: Add a WPT reftest of a shape-outside: image with a negative left offset relative to its containing block. r=dholbert

MozReview-Commit-ID: JehwcVc12Ui

--HG--
extra : rebase_source : 31843273efc91c556f2a52d8fb8dfec99cede21f
This commit is contained in:
Brad Werth 2018-05-25 16:18:56 -07:00
Родитель e0834100e1
Коммит ab777532ec
2 изменённых файлов: 85 добавлений и 0 удалений

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

@ -129673,6 +129673,18 @@
{}
]
],
"css/css-shapes/shape-outside/shape-image/shape-image-027.html": [
[
"/css/css-shapes/shape-outside/shape-image/shape-image-027.html",
[
[
"/css/css-shapes/shape-outside/shape-image/reference/shape-image-006-ref.html",
"=="
]
],
{}
]
],
"css/css-shapes/shape-outside/supported-shapes/circle/shape-outside-circle-013.html": [
[
"/css/css-shapes/shape-outside/supported-shapes/circle/shape-outside-circle-013.html",
@ -520600,6 +520612,10 @@
"a7cbad00762e590050f118a84ef5d6a6fbbb3db3",
"reftest"
],
"css/css-shapes/shape-outside/shape-image/shape-image-027.html": [
"14d6e34ac39967dcf29b3140c5745458f26ed59d",
"reftest"
],
"css/css-shapes/shape-outside/shape-image/support/animated.gif": [
"c5252926d8dbf82c06cdb615fda708ca7728f0bb",
"support"

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

@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: left float, url(png), real negative offset image + shape-margin (px)</title>
<link rel="author" title="Brad Werth" href="mailto:bwerth@mozilla.com"/>
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/>
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/>
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-margin-property"/>
<link rel="match" href="reference/shape-image-006-ref.html"/>
<meta name="flags" content="ahem"/>
<meta name="assert" content="This test verifies that content wraps around all the image pixels
+ the shape-margin when shape-outside is given a png file.
Additionally, the shape-outside: image element is given a negative
left offset relative to its containing block."/>
<style type="text/css">
body {
margin: 0;
}
.container {
left: 10px;
font: 50px/1 Ahem;
}
#test {
width: 200px;
color: rgb(0,100,0);
}
#image {
float: left;
shape-outside: url("support/left-half-rectangle.png");
shape-margin: 20px;
margin-left: -10px;
width: 100px;
height: 100px;
}
.blue {
width: 2px;
height: 100px;
background-color: blue;
}
.left-line { left: 65px; }
.right-line { left: 125px; }
.failure {
left: 70px;
width: 50px;
height: 100px;
background-color: red;
z-index: -1;
}
.container, .blue, .failure {
position: absolute;
top: 70px;
}
</style>
</head>
<body>
<p>
The test passes if the green rectangle on the right is completely between the two blue lines.
There should be no red.
</p>
<div id="test" class="container">
<div id="image"><img src="support/left-half-rectangle.png" style="margin-left: 10px"/></div>
X<br/>X
</div>
<div class="blue left-line"></div>
<div class="blue right-line"></div>
<div class="failure"></div>
</body>
</html>