mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Fixes a bug where we would clip `box-shadow` when `overflow: hidden` was set, which is not supposed to happen since `overflow` only affects clipping of an element's content.
31 lines
747 B
HTML
31 lines
747 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/nested-boxes-with-hidden-overflow-and-border-radius-ref.html" />
|
|
<meta name="fuzzy" content="maxDifference=0-2;totalPixels=0-301">
|
|
<style>
|
|
.outer {
|
|
overflow: hidden;
|
|
border-radius: 100px;
|
|
background-color: magenta;
|
|
width: 500px;
|
|
height: 500px;
|
|
}
|
|
|
|
.middle {
|
|
overflow: hidden;
|
|
border-radius: 50px;
|
|
transform: translate(10px, 10px);
|
|
background-color: lawngreen;
|
|
}
|
|
|
|
.inner {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: black;
|
|
transform: translate(10px, 10px);
|
|
}
|
|
</style>
|
|
<div class="outer">
|
|
<div class="middle">
|
|
<div class="inner"></div>
|
|
</div>
|
|
</div>
|