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>
17 lines
801 B
HTML
17 lines
801 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>overflow clipping with positioned children</title></head>
|
|
<body style="margin: 0;">
|
|
<!-- CSS 2.1 §11.1.1: positioned overflow element clips its positioned descendants -->
|
|
<div style="width: 200px; height: 100px; overflow: hidden; position: relative; background-color: #eee;">
|
|
<div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 100px; background-color: #faa;">
|
|
Clipped by positioned overflow parent
|
|
</div>
|
|
</div>
|
|
<!-- Non-positioned overflow element should still clip non-positioned content -->
|
|
<div style="width: 200px; height: 100px; overflow: hidden; background-color: #ddd; margin-top: 10px;">
|
|
<div style="width: 300px; height: 200px; background-color: #aaf;">Clipped content</div>
|
|
</div>
|
|
</body>
|
|
</html>
|