1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 23:50:59 +00:00
serenity/Tests/LibWeb/Ref/clip-abspos-children.html
Aliaksandr Kalenik d06d4eb388 LibWeb: Apply "clip" property in apply_clip_overflow_rect()
Fixes bug when "clip" property does not affect abspos children.
This change makes "clip" property to be applied together with
"overflow: hidden" in `apply_clip_overflow_rect()` that already
handles abspos children correctly.
2023-08-23 15:49:06 +02:00

17 lines
415 B
HTML

<!DOCTYPE html><style type="text/css">
* {
border: 1px solid black;
}
.outer {
position: absolute;
clip: rect(0px, auto, auto, 0px);
}
.inner {
position: absolute;
}
svg {
width: 100px;
height: 100px;
fill: red;
}
</style><div class="outer"><div class="inner"><svg viewBox="0 0 1 1"><rect x=0 y=0 width=1 height=1></rect><svg>