Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-masking/clip-path/clip-path-circle-010.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Masking: Test clip-path property and circle function with big radius</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="reference/clip-path-semicircle-ref.html">
<meta name="fuzzy" content="maxDifference=0-120; totalPixels=0-900">
<meta name="assert" content="
The circle has a radius of 100px, and thus a diameter of 200px.
That's twice as big as the height of the element, producing a semicircle.
The radius should NOT shrink so that the entire circle would fit.
">
<p>The test passes if there is a semicircle.</p>
<div style="width: 200px; height: 100px; background: black;
clip-path: circle(100px at 100px 100px)"></div>