Skip to content

Commit af07862

Browse files
authored
feat(tests): add comprehensive text-align test cases to fixtures/html (#313)
1 parent bdf2771 commit af07862

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

fixtures/html/text-rendering-test.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
.align-center { text-align: center; }
6565
.align-right { text-align: right; }
6666
.align-justify { text-align: justify; }
67+
.align-start { text-align: start; }
68+
.align-end { text-align: end; }
69+
.align-match-parent { text-align: match-parent; }
6770

6871
/* Line Height Tests */
6972
.line-height-normal { line-height: normal; }
@@ -217,6 +220,21 @@ <h2 class="section-title">文本对齐测试 - Text Alignment Tests</h2>
217220
<div class="test-label">text-align: justify</div>
218221
<p class="align-justify">这是两端对齐的文本。This is justified text. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
219222
</div>
223+
224+
<div class="test-item">
225+
<div class="test-label">text-align: start</div>
226+
<p class="align-start">这是起始对齐的文本。This is start-aligned text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
227+
</div>
228+
229+
<div class="test-item">
230+
<div class="test-label">text-align: end</div>
231+
<p class="align-end">这是结束对齐的文本。This is end-aligned text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
232+
</div>
233+
234+
<div class="test-item">
235+
<div class="test-label">text-align: match-parent</div>
236+
<p class="align-match-parent">这是匹配父元素对齐的文本。This is match-parent aligned text. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
237+
</div>
220238
</section>
221239

222240
<!-- Line Height Tests -->

0 commit comments

Comments
 (0)