1
0
Fork 0
firefox/testing/web-platform/tests/css/css-text/text-spacing-trim/text-spacing-trim-colon-001-ref.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

121 lines
3.4 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<meta charset="utf-8">
<script src="support/variant-class.js"></script>
<style>
@font-face {
font-family: halt-font;
src: url('/fonts/noto/cjk/NotoSansCJKjp-Regular-subset-halt.otf');
}
#container {
font-family: halt-font;
font-size: 20px;
position: relative;
text-spacing-trim: space-all;
}
#container > div {
position: absolute;
}
:root:not(.vrl) .col1 {
left: 6em;
}
:root:not(.vrl) .col2 {
left: 12em;
}
:root.vrl {
writing-mode: vertical-rl;
}
:root.vrl .col1 {
top: 6em;
}
:root.vrl div.col2 {
top: 12em;
}
halt {
font-feature-settings: 'halt' 1, 'vhal' 1;
}
novhal halt {
font-feature-settings: 'halt' 1;
}
</style>
<div id="container">
<div lang="ja">
<!-- In Adobe's convention, colon rotates, while semicolon is upright. -->
<!-- In this case, colon can be either middle or other. -->
<!-- Colon + Open/Close/Middle -->
<div>国:<halt></halt></div>
<div>国:)国</div>
<div>国:・国</div>
<div>国: 国</div>
<!-- Open/Close/Middle + Colon -->
<div>国(:国</div>
<div><halt></halt>:国</div>
<div>国・:国</div>
<div>国 :国</div>
<novhal>
<!-- Semicolon + Open/Close/Middle -->
<div>国;<halt></halt></div>
<div>国;)国</div>
<div>国;・国</div>
<div>国; 国</div>
<!-- Open/Close/Middle + Semicolon -->
<div>国(;国</div>
<div><halt></halt>;国</div>
<div>国・;国</div>
<div>国 ;国</div>
</novhal>
</div>
<!-- The same content with "zh-hans". -->
<div lang="zh-hans" class="col1">
<!-- In Adobe's convention, both colon and semicolon are upright. -->
<novhal>
<!-- Colon + Open/Close/Middle -->
<div>国:<halt></halt></div>
<div><halt></halt>)国</div>
<div><halt></halt>・国</div>
<div><halt></halt> 国</div>
<!-- Open/Close/Middle + Colon -->
<div>国(:国</div>
<div><halt></halt>:国</div>
<div>国・:国</div>
<div>国 :国</div>
<!-- Semicolon + Open/Close/Middle -->
<div>国;<halt></halt></div>
<div><halt></halt>)国</div>
<div><halt></halt>・国</div>
<div><halt></halt> 国</div>
<!-- Open/Close/Middle + Semicolon -->
<div>国(;国</div>
<div><halt></halt>;国</div>
<div>国・;国</div>
<div>国 ;国</div>
</novhal>
</div>
<!-- The same content with "zh-hant". -->
<div lang="zh-hant" class="col2">
<!-- In Adobe's convention, both colon and semicolon are upright. -->
<novhal>
<!-- Colon + Open/Close/Middle -->
<div>国:<halt></halt></div>
<div>国:)国</div>
<div>国:・国</div>
<div>国: 国</div>
<!-- Open/Close/Middle + Colon -->
<div>国(:国</div>
<div><halt></halt>:国</div>
<div>国・:国</div>
<div>国 :国</div>
<!-- Semicolon + Open/Close/Middle -->
<div>国;<halt></halt></div>
<div>国;)国</div>
<div>国;・国</div>
<div>国; 国</div>
<!-- Open/Close/Middle + Semicolon -->
<div>国(;国</div>
<div><halt></halt>;国</div>
<div>国・;国</div>
<div>国 ;国</div>
</novhal>
</div>
</div>