Automatic update from web-platform-tests layout: Adjust corner radii for inset box shadows Inset box shadows refer to the padding box, not the border box. However, the value from `border-radius` needs to apply to the border box. Therefore, we need to adjust the `border-radius` by the border sizes before applying it to the inset box shadow. Signed-off-by: Oriol Brufau <obrufau@igalia.com> -- wpt-commits: 173c0c9b9fcb0ce7970b1b14caae9d8e8c7b864a wpt-pr: 60583
22 lines
612 B
HTML
22 lines
612 B
HTML
<!DOCTYPE html>
|
|
<title>Box Shadow Border Radius (Inset)</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
<link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#shadow-shape">
|
|
<link rel="help" href="https://github.com/servo/servo/issues/45614">
|
|
<link rel="match" href="box-shadow-radius-002-ref.html">
|
|
<meta name="fuzzy" content="maxDifference=0-120; totalPixels=0-1500">
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
#target {
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 50px solid transparent;
|
|
box-shadow: inset 0 0 0 50px;
|
|
border-radius: 125px;
|
|
}
|
|
</style>
|
|
<div id="target"></div>
|