Files
rust_browser/tests/goldens/expected/186-negative-margin-auto-height.dl.txt
Zachary D. Rowitsch 90063566d4 Clamp auto-height to zero when negative margins produce negative content height
CSS 2.1 §10.6.3 defines auto-height as the distance from the content top
to the last in-flow child's margin-box bottom. Large negative margins can
make this negative, which has no geometric meaning. Clamp to 0 to match
browser behavior and fix Acid2 .empty div layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 04:37:25 -05:00

4 lines
113 B
Plaintext

DisplayList items=2
SolidRect rect=(8, 8, 200, 0) color=#ff0000
SolidRect rect=(8, 8, 200, 50) color=#008000