Files
rust_browser/tests/goldens/fixtures/197-first-letter-basic.html
Zachary D. Rowitsch 6ebf3f5b90 Implement ::first-line and ::first-letter CSS pseudo-elements
Add full rendering pipeline support for both pseudo-elements: style
computation with property filtering, ::first-letter box tree text
splitting, and ::first-line post-layout style overrides on first line
fragments. Promotes 2 WPT tests to pass and demotes 3 edge cases to
known_fail.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 23:45:54 -05:00

13 lines
216 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
p { font-size: 16px; }
p::first-letter { font-size: 32px; color: red; }
</style>
</head>
<body>
<p>Hello world. The first letter should be large and red.</p>
</body>
</html>