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
18 lines
323 B
HTML
18 lines
323 B
HTML
<!DOCTYPE html>
|
|
<title>CSS Reference: Box Shadow Border Radius (Inset)</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
#target {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 50px solid;
|
|
margin: 50px;
|
|
border-radius: 75px;
|
|
}
|
|
</style>
|
|
<div id="target"></div>
|