зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1289011 - Part 5. shape-box reftest for elements with associated CSS layout box. r=heycam
MozReview-Commit-ID: GnDA3cqO3QL --HG-- extra : rebase_source : a864a8ab5f42033b39c3e595c1baaa7297ed8fe8
This commit is contained in:
Родитель
f2373417b4
Коммит
6363ec70cd
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path border-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-1-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an HTML element.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
top: 50px;
|
||||
background-color: blue;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
padding: 10px;
|
||||
border: solid blue 25px;
|
||||
clip-path: circle(farthest-side) border-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path content-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-1-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path content-box works correctly or not. This test is for clip-path applied to an HTML element.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
background-color: blue;
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 10px;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 40px;
|
||||
clip-path: circle(farthest-side) content-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path geometry box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
</head>
|
||||
<body>
|
||||
<svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">
|
||||
<circle cx="100" cy="100" r="50" fill="blue">
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path geometry box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
</head>
|
||||
<body>
|
||||
<svg width="200" height="200" style="position: absolute; left: 0px; top: 0px;">
|
||||
<polygon points="100,50 150,100 150,150 50,150 50,100" fill="blue"/>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path content-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-2-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path content-box works correctly or not.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 50px;
|
||||
clip-path: polygon(50% 0%, 100% 50%, 100% 100%, 0% 100%, 0% 50%) content-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path padding-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-2-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path padding-box works correctly or not.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 50px;
|
||||
clip-path: polygon(25% 50%, 50% 25%, 75% 50%, 75% 75%, 25% 75%) padding-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path border-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-2-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path border-box works correctly or not.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid blue 50px;
|
||||
clip-path: polygon(25% 50%, 50% 25%, 75% 50%, 75% 75%, 25% 75%) border-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path margin-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-2-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path margin-box works correctly or not.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
background-color: blue;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin: 50px;
|
||||
clip-path: polygon(0% 75%, 50% 25%, 100% 75%) margin-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Masking: clip-path: clip path padding-box</title>
|
||||
<link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
|
||||
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
|
||||
<link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path">
|
||||
<link rel="match" href="clip-path-geometryBox-1-ref.html">
|
||||
<meta name="assert" content="Test checks whether clip-path padding-box works correctly or not. This test is for clip-path applied to an HTML element.">
|
||||
<style type="text/css">
|
||||
div {
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
top: 50px;
|
||||
background-color: blue;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
padding: 25px;
|
||||
clip-path: circle(farthest-side) padding-box;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
</body>
|
||||
</html>
|
|
@ -77,3 +77,14 @@ fails == mask-origin-2.html mask-origin-2-ref.html # bug 1260094
|
|||
== mask-size-percent-length.html mask-size-percent-percent-ref.html
|
||||
== mask-size-percent-percent.html mask-size-percent-percent-ref.html
|
||||
== mask-size-percent-percent-stretch.html mask-size-percent-percent-stretch-ref.html
|
||||
|
||||
default-preferences pref(layout.css.clip-path-shapes.enabled,true)
|
||||
|
||||
== clip-path-contentBox-1a.html clip-path-geometryBox-1-ref.html
|
||||
== clip-path-paddingBox-1a.html clip-path-geometryBox-1-ref.html
|
||||
fuzzy(64,311) == clip-path-borderBox-1a.html clip-path-geometryBox-1-ref.html
|
||||
== clip-path-geometryBox-2a.html clip-path-geometryBox-2-ref.html
|
||||
== clip-path-geometryBox-2b.html clip-path-geometryBox-2-ref.html
|
||||
== clip-path-geometryBox-2c.html clip-path-geometryBox-2-ref.html
|
||||
== clip-path-geometryBox-2d.html clip-path-geometryBox-2-ref.html
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче