mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 07:45:30 +00:00
Bug 1246762 - Add reftests for |clip-path: inset()|s with rounded corners ; r=dholbert
MozReview-Commit-ID: G6LhuffpQfe --HG-- extra : rebase_source : 85961d29876221de3b7456b9b1760e8350196b34
This commit is contained in:
parent
be6e6006ea
commit
a66a27b114
@ -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 (with rounded corners) 002</title>
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
background-color: green;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners</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 uniformly rounded corners</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-002-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 round 20px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners</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 uniformly rounded corners</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-002-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 round 20px 20px 20px 20px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners</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 uniformly rounded corners</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-002-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 round 20px / 20px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners</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: Ref test for clip-path's inset function (with different rounded corners) 003</title>
|
||||
<link rel="author" title="Manish Goregaokar" href="mailto:manish@mozilla.com">
|
||||
<style type="text/css">
|
||||
#square {
|
||||
width: 180px;
|
||||
height: 180px;
|
||||
background-color: green;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
border-radius: 10px 20px 30px 40px / 50px 60px 70px 80px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners, with different radii</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 different rounded corners</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-shapes/#typedef-basic-shape">
|
||||
<link rel="match" href="clip-path-inset-003-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 round 10px 20px 30px 40px / 50px 60px 70px 80px);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>The test passes if there is a green rect not touching the sides with rounded corners, with different radii</p>
|
||||
<div id="square"></div>
|
||||
</body>
|
||||
</html>
|
@ -50,4 +50,9 @@ default-preferences pref(layout.css.clip-path-shapes.enabled,true)
|
||||
|
||||
== 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
|
||||
== clip-path-inset-001c.html clip-path-inset-001-ref.html
|
||||
# Anti-aliasing behavior for masking and borders is different
|
||||
fuzzy(64,146) == clip-path-inset-002a.html clip-path-inset-002-ref.html
|
||||
fuzzy(64,146) == clip-path-inset-002b.html clip-path-inset-002-ref.html
|
||||
fuzzy(64,146) == clip-path-inset-002c.html clip-path-inset-002-ref.html
|
||||
fuzzy(64,340) == clip-path-inset-003.html clip-path-inset-003-ref.html
|
Loading…
Reference in New Issue
Block a user