mirror of
https://github.com/RGBCube/serenity
synced 2026-01-12 23:50:59 +00:00
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.
17 lines
415 B
HTML
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>
|