зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1246762 - Add reftests for non-rounded |clip-path: inset()|s ; r=dholbert
MozReview-Commit-ID: HSRZq2NLPcW --HG-- extra : rebase_source : 93c497ddc35942d6298b87c5fcb813e061a328bc
This commit is contained in:
Родитель
b83e274dee
Коммит
be6e6006ea
|
@ -0,0 +1,26 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Masking: Reference for clip-path's inset function 001</title>
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid green 40px;
|
||||
background-color: green;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green square not touching the edges</p>
|
||||
<div id="square"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Masking: Test clip-path property and inset function with 10px on all sides</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-001-ref.html">
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid green 50px;
|
||||
background-color: green;
|
||||
clip-path: inset(10px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green square not touching the edges</p>
|
||||
<div id="square"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Masking: Test clip-path property and inset function with different insets on each side</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-001-ref.html">
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 120px;
|
||||
height: 100px;
|
||||
border: solid green 50px;
|
||||
background-color: green;
|
||||
clip-path: inset(10px 20px);
|
||||
position: relative;
|
||||
left: -10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green square not touching the edges</p>
|
||||
<div id="square"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Masking: Test clip-path property and inset function with different insets for all 4 sides</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-001-ref.html">
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 110px;
|
||||
height: 100px;
|
||||
border: solid green 50px;
|
||||
background-color: green;
|
||||
clip-path: inset(5px 10px 15px 20px);
|
||||
position: relative;
|
||||
left: -10px;
|
||||
top: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green square not touching the edges</p>
|
||||
<div id="square"></div>
|
||||
</body>
|
||||
</html>
|
|
@ -47,3 +47,7 @@ default-preferences pref(layout.css.clip-path-shapes.enabled,true)
|
|||
== clip-path-ellipse-006.html clip-path-ellipse-001-ref.html
|
||||
== clip-path-ellipse-007.html clip-path-ellipse-001-ref.html
|
||||
== clip-path-ellipse-008.html clip-path-ellipse-001-ref.html
|
||||
|
||||
== clip-path-inset-001a.html clip-path-inset-001-ref.html
|
||||
== clip-path-inset-001b.html clip-path-inset-001-ref.html
|
||||
== clip-path-inset-001c.html clip-path-inset-001-ref.html
|
Загрузка…
Ссылка в новой задаче