Skip to content

Commit

Permalink
Re-import css/css-masking WPT
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=261996
rdar://115931011

Reviewed by Alex Christensen.

Upstream commit: web-platform-tests/wpt@c21bb1f

* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/resources/resource-files.json:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path-svg-content/clip-path-shape-circle-004.svg:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1c.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1d-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1d.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1e-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1e.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1c.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1d-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1d.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1e-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1e.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-fillBox-1a.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-007-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-007-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-007.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-008-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-008-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-008.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-009-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-009-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-009.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-010-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-010-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-010.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1b-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1b.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1c-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1c.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1d-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1d-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1d.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-paddingBox-1c.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-paddingBox-1d-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-paddingBox-1d.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-paddingBox-1e-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-paddingBox-1e.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-polygon-010.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-rect-003.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-strokeBox-1a.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-strokeBox-1b.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-viewBox-1c.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-003.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/clip-path/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/hit-test/clip-path-svg-geometry-box-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/hit-test/clip-path-svg-geometry-box.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/hit-test/w3c-import.log:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-2.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3h.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-6.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-opacity-1d.html:
* LayoutTests/imported/w3c/web-platform-tests/css/css-masking/w3c-import.log:

Canonical link: https://commits.webkit.org/268361@main
  • Loading branch information
nt1m committed Sep 23, 2023
1 parent 9c483ae commit de1402a
Show file tree
Hide file tree
Showing 53 changed files with 651 additions and 35 deletions.
29 changes: 14 additions & 15 deletions LayoutTests/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -2362,7 +2362,6 @@ webkit.org/b/104442 imported/w3c/web-platform-tests/css/css-masking/clip-path/cl
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-polygon-010.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-reference-box-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-borderBox-1c.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-contentBox-1c.html [ ImageOnlyFailure ]
Expand All @@ -2374,6 +2373,18 @@ imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-viewBox-1c.h
webkit.org/b/104442 imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-url-reference-change-from-empty.html [ ImageOnlyFailure ]
webkit.org/b/229510 imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-descendant-text-mutated-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-scaled-video.html [ Skip ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-005.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-006.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-007.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-009.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-010.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1d.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-svg-text-css.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/animations/clip-path-xywh-interpolation-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-003.html [ ImageOnlyFailure ]

# CSS shape()
webkit.org/b/238371 imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-shape-001.html [ ImageOnlyFailure ]
Expand All @@ -2383,18 +2394,6 @@ webkit.org/b/238371 imported/w3c/web-platform-tests/css/css-masking/clip-path/cl
webkit.org/b/238371 imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-shape-004.html [ ImageOnlyFailure ]
webkit.org/b/238371 imported/w3c/web-platform-tests/css/css-masking/clip-path/animations/clip-path-shape-interpolation-001.html [ ImageOnlyFailure ]
webkit.org/b/238371 imported/w3c/web-platform-tests/css/css-masking/clip-path/animations/clip-path-shape-interpolation-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-004.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-005.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-inline-006.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-rect-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-svg-text-css.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/animations/clip-path-xywh-interpolation-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-001.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-002.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/clip-path/clip-path-xywh-003.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3f.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3g.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3h.html [ ImageOnlyFailure ]

webkit.org/b/229370 imported/w3c/web-platform-tests/css/css-masking/clip/clip-filter-order.html [ ImageOnlyFailure ]

Expand All @@ -2404,9 +2403,9 @@ webkit.org/b/233543 imported/w3c/web-platform-tests/css/css-masking/mask-image/m
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-clip-1.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-clip-2.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-composite-2c.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-2.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3f.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3g.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-3i.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-6.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-image-data-url-image.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-mode-d.html [ ImageOnlyFailure ]
imported/w3c/web-platform-tests/css/css-masking/mask-image/mask-mode-to-mask-type.html [ ImageOnlyFailure ]
Expand Down
5 changes: 5 additions & 0 deletions LayoutTests/imported/w3c/resources/resource-files.json
Original file line number Diff line number Diff line change
Expand Up @@ -2875,8 +2875,13 @@
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-004-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-005-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-006-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-007-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-008-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-009-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inline-010-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-inset-round-percent-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-localRef-1-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-marginBox-1d-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-mix-blend-mode-1-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-on-fixed-position-scroll-ref.html",
"web-platform-tests/css/css-masking/clip-path/clip-path-rotated-will-change-transform-ref.html",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<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="fuzzy" content="maxDifference=0-64; totalPixels=0-368">
<meta name="fuzzy" content="maxDifference=0-65; totalPixels=0-368">
<meta name="assert" content="Test checks whether clip-path border-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">
<style>
svg {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<title>CSS Masking: clip path with border-box</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="match" href="reference/green-100x100.html">
<meta name="assert" content="Check that the 'clip-path' property supports border-box.">

<style>
.clipped {
width: 50px;
height: 50px;
background-color: green;
clip-path: border-box;
border: 25px solid green;
/* This outline draws outside the border box and should be clipped. */
outline: 8px solid red;
}
</style>
<div class="clipped"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green; border-radius: 50px;"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<title>CSS Masking: clip path with border-box and border-radius</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-border-box">
<link rel="match" href="reference/green-circle-100x100.html">
<meta name="fuzzy" content="maxDifference=0-126; totalPixels=0-400">
<meta name="assert" content="Check that the 'clip-path' property supports border-box with border-radius.">

<style>
.clipped {
width: 50px;
height: 50px;
background-color: green;
clip-path: border-box;
border: 25px solid green;
border-radius: 50px;
/* This outline draws outside the border box and should be clipped. */
outline: 8px solid red;
}
</style>
<div class="clipped"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<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="fuzzy" content="maxDifference=0-52; totalPixels=0-355">
<meta name="fuzzy" content="maxDifference=0-52; totalPixels=0-376">
<meta name="assert" content="Test checks whether clip-path content-box works correctly or not.">
</head>
<style>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<title>CSS Masking: clip path with content-box</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="match" href="reference/green-100x100.html">
<meta name="assert" content="Check that the 'clip-path' property supports content-box.">

<style>
body { margin: 0; }
.clipped {
display: inline-block;
clip-path: content-box;
/* This background draws in the padding and should be clipped. */
background-color: red;
padding: 4px;
/* This border draws outside the content box and should be clipped. */
border: 4px solid darkred;
/* This outline draws outside the content box and should be clipped. */
outline: 100px solid maroon;
}
.content {
width: 100px;
height: 100px;
background: green;
}
</style>
<div class="clipped">
<div class="content"></div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green; border-radius: 50px;"></div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<title>CSS Masking: clip path with content-box and border-radius</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-content-box">
<link rel="match" href="reference/green-circle-100x100.html">
<meta name="fuzzy" content="maxDifference=0-64; totalPixels=0-400">
<meta name="assert" content="Check that the 'clip-path' property supports content-box with border-radius.">

<style>
body { margin: 0; }
.clipped {
display: inline-block;
clip-path: content-box;
/* This background draws in the padding and should be clipped. */
background-color: red;
padding: 4px;
border-radius: 58px;
/* This border draws outside the content box and should be clipped. */
border: 4px solid darkred;
/* This outline draws outside the content box and should be clipped. */
outline: 100px solid maroon;
}
.content {
width: 100px;
height: 100px;
background: green;
}
</style>
<div class="clipped">
<div class="content"></div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
<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="fuzzy" content="maxDifference=0-52; totalPixels=0-355">
<meta name="fuzzy" content="maxDifference=0-79; totalPixels=0-392">
<meta name="assert" content="Test checks whether clip-path fill-box works correctly or not. This test is for clip-path applied to an SVG SVG element.">
<style>
svg {
position: absolute;
left: 40px;
top: 40px;
left: 5px;
top: 5px;
background-color: blue;
width: 30px;
height: 30px;
width: 100px;
height: 100px;
margin: 10px;
padding: 10px;
border: solid blue 25px;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<title>clip-path on inline with border-box and border-radius</title>
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-border-box">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#typedef-shape-box">
<link rel="match" href="clip-path-inline-007-ref.html">
<meta name="fuzzy" content="maxDifference=0-62; totalPixels=0-325">
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
border-radius: 50px;
clip-path: border-box;
color: green;
/* This outline draws outside the border box and should be clipped. */
outline: 8px solid red;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<title>clip-path on inline with margin-box and border-radius</title>
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#valdef-shape-box-margin-box">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#typedef-shape-box">
<link rel="match" href="clip-path-inline-008-ref.html">
<meta name="fuzzy" content="maxDifference=0-14; totalPixels=0-240">
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 50px/1 Ahem;
line-height: 50px;
}
.container > span {
margin: 25px;
border-radius: 50px;
clip-path: margin-box;
color: green;
/* This outline draws far outside the margin box and should be partially clipped. */
outline: 200px solid green;
/* Disables margin collapsing. */
float: left;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
margin-left: 50px;
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
font: 100px/1 Ahem;
line-height: 100px;
}
.container > span {
margin-left: 50px;
clip-path: circle(50%);
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>
Loading

0 comments on commit de1402a

Please sign in to comment.