Story 1.3: Complete positioning support including auto offset resolution, clip rect, fixed scroll behavior, and containing block edge cases. Key changes: - Refactored calculate_absolute_layout() for full §10.3.7/§10.6.4 compliance - Implemented clip: rect() parsing, style computation, layout, and paint - Fixed sticky child recursion in process_deferred_absolutes - Fixed shrink-to-fit abs_cb using unpositioned padding_box - Added collapsed_borders handling in offset_children - Propagated CSS clip to descendant stacking contexts - Tightened rect() parser to reject garbage between rect and ( - Added tracing::warn for unrecognized clip tokens - Replaced hardcoded epsilon with MARGIN_EPSILON constant - Added RTL unimplemented comments on over-constrained resolution - Strengthened tests: exact assertions, delta comparisons, new coverage - 4 new tests: negative offsets, clip suppression, padding edge distinction - 5 golden tests (222-226), promoted WPT absolute-tables-016 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8 lines
403 B
Plaintext
8 lines
403 B
Plaintext
DisplayList items=6
|
|
SolidRect rect=(0, 0, 440, 340) color=#d3d3d3
|
|
SolidRect rect=(30, 30, 200, 120) color=#ffffe0
|
|
Text rect=(30, 31.6, 7.424376, 16) text="C" color=#000000 font_size=16
|
|
Text rect=(40.47871, 31.6, 42.372982, 16) text="content" color=#000000 font_size=16
|
|
SolidRect rect=(160, 100, 60, 40) color=#add8e6
|
|
Text rect=(160, 101.6, 8.5756235, 16) text="D" color=#000000 font_size=16
|