Files
rust_browser/tests/goldens/fixtures/198-first-letter-float.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
282 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
p { font-size: 16px; width: 300px; }
p::first-letter { float: left; font-size: 48px; color: blue; margin-right: 4px; }
</style>
</head>
<body>
<p>Drop cap style. The first letter should float left and be large and blue.</p>
</body>
</html>