Files
rust_browser/tests/goldens/fixtures/257-text-decoration.html
Zachary D. Rowitsch 0c082579ba Implement CSS 2.1 text properties with code review fixes (§16.1, §16.3, §16.4, §9.10)
Implement word-spacing, text-indent verification, text-decoration completeness,
direction, and unicode-bidi properties. Code review fixes include adding
TextAlign::Start variant for correct direction-dependent initial value and
consolidating duplicate layout_html() test helpers across 12 files into a
shared tests::common module.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-14 09:19:07 -04:00

25 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; font-size: 16px; }
.underline { text-decoration: underline; width: 300px; background: #eee; margin-bottom: 10px; }
.overline { text-decoration: overline; width: 300px; background: #ddd; margin-bottom: 10px; }
.linethrough { text-decoration: line-through; width: 300px; background: #ccc; margin-bottom: 10px; }
.combined { text-decoration: underline line-through; width: 300px; background: #bbb; margin-bottom: 10px; }
.propagation { text-decoration: underline; width: 300px; background: #aaa; margin-bottom: 10px; }
.propagation span { color: red; }
.none-override { text-decoration: underline; width: 300px; background: #999; }
.none-override span { text-decoration: none; }
</style>
</head>
<body>
<div class="underline">Underlined text content.</div>
<div class="overline">Overline text content.</div>
<div class="linethrough">Line-through text content.</div>
<div class="combined">Both underline and line-through.</div>
<div class="propagation">Parent <span>child inherits underline</span> decoration.</div>
<div class="none-override">Parent <span>child with none</span> still shows.</div>
</body>
</html>