Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-backgrounds/background-clip-padding-box-with-border-radius-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Backgrounds and Borders Test: background-clip: padding-box with border-radius</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="match" href="reference/background-clip-padding-box-with-border-radius-002-ref.html">
<meta name="fuzzy" content="maxDifference=0-96; totalPixels=0-400">
<meta name="assert" content="Backgrounds clipped to the padding box should follow the padding box curve, which should be equal to the outer border radius minus the corresponding border thickness.">
<div style="
width: 20px;
height: 20px;
padding: 20px;
border: 20px solid black;
border-radius: 100% 0 0 0;
background-color: black;
background-clip: padding-box;
"></div>