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>
4 lines
113 B
Plaintext
4 lines
113 B
Plaintext
DisplayList items=2
|
|
SolidRect rect=(8, 8, 200, 0) color=#ff0000
|
|
SolidRect rect=(8, 8, 200, 50) color=#008000
|