ladybird/Tests/LibWeb/Ref/input/overflow-hidden-8.html
Aliaksandr Kalenik 9bbc1cd618 LibWeb: Check if transform is identity instead of has_css_transform()
...in clip and scroll frames calculation algorithm.

Fix a regression from 719a50c where display-list recording disagreed
with the clipping logic about whether a stacking context is transformed.
`has_css_transform()` returns true whenever the computed transform is
not `none`, which differs from an identity-matrix check. These yield
different results for cases like `translate(0, 0)`.
2025-09-23 23:35:19 +02:00

31 lines
636 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/overflow-hidden-8-ref.html" />
<meta name="fuzzy" content="maxDifference=0-1;totalPixels=0-70">
<style>
#outer {
width: 100px;
height: 100px;
overflow: hidden;
position: absolute;
border-radius: 9999px;
}
#middle {
overflow: hidden;
position: absolute;
transform: translateZ(0px);
right: 0;
bottom: 0;
left: 0;
top: 0;
}
#inner {
background-color: blueviolet;
position: absolute;
height: 100%;
left: 0;
top: 0;
bottom: 0;
right: 0;
width: 100%;
}
</style><div id="outer"><div id="middle"><div id="inner">