Implement box-sizing property (content-box and border-box)
Add BoxSizing enum and box_sizing field to ComputedStyle with CSS
parsing support. Layout engine now respects explicit CSS width/height
and adjusts content dimensions based on box-sizing mode:
- content-box (default): width/height apply to content area only
- border-box: width/height include padding and border
Content area clamps to 0 when padding+border exceeds specified size
in border-box mode. Property is not inherited per spec.
9 new tests covering both modes, clamping, non-inheritance, and height.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
authored by
tangled.org
d4ca0b2c
bbead018