Add Overflow::Scroll and Auto enum variants, extend clipping to all non-visible overflow values, implement visual scroll indicators, and fix positioned children clipping per CSS 2.1 §11.1.1. Code review fixes include: DRY overflow parsing helper, rasterizer clip consistency, scroll indicator corner overlap fix, abspos escape in overflow detection (recovering 6 WPT tests), and additional golden/unit tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
20 lines
993 B
HTML
20 lines
993 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>overflow clipping: abspos escapes non-positioned overflow ancestor</title></head>
|
|
<body style="margin: 0;">
|
|
<!-- CSS 2.1 §11.1.1: a non-positioned overflow:hidden element does NOT clip
|
|
absolutely positioned descendants whose containing block is above it. -->
|
|
<div style="position: relative; width: 400px; height: 300px; background-color: #ddd;">
|
|
<!-- This div has overflow:hidden but is NOT positioned, so it should NOT
|
|
clip the abspos child whose containing block is the outer relative div -->
|
|
<div style="width: 200px; height: 100px; overflow: hidden; background-color: #eee;">
|
|
<div style="position: absolute; top: 80px; left: 10px; width: 150px; height: 80px; background-color: #faa;">
|
|
Escapes non-positioned overflow
|
|
</div>
|
|
<!-- Normal flow content IS clipped -->
|
|
<div style="width: 300px; height: 200px; background-color: #aaf;">Clipped normal flow</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|