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-inline-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>clip-path on inline with margin-box</title>
<link rel="match" href="clip-path-inline-004-ref.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: 50px;
clip-path: circle(25%) margin-box;
color: green;
}
</style>
<p>Test passes if there is a filled green circle with radius 50px.
<div class="container">
<span>X</span>
</div>