Files
rust_browser/tests/goldens/fixtures/199-text-transform.html
Zachary D. Rowitsch 97d58166e7 Implement text-transform: none/uppercase/lowercase/capitalize CSS property
Add full support for the CSS text-transform property following the
established pattern for inherited text properties (white-space,
letter-spacing). The transform is applied after whitespace normalization
and before text measurement in box tree construction.

Key design decisions:
- Uses Cow<str> return type to avoid allocations for the common None case
- Capitalize uses whitespace-only word boundaries (matching browser behavior)
- Applied to all text content paths: text nodes, pseudo-elements, form controls
- 10 WPT tests promoted to pass, 3 shaping tests demoted (pixel mismatch)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 00:57:00 -05:00

403 B