summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/word-boundary/word-boundary-106.html
blob: a968af7767217318d67b9045b434d3eeee2c07b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 4 Test: word-boundary-detection:auto(th) untagged</title>
<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-4/#word-boundary-detection">
<link rel="match" href="reference/word-boundary-106-ref.html">
<meta name="assert" content="word-boundary-detection:auto(th), if supported, does the same as normal (insert soft wraps for south east asian) on content not language tagged.">
<style>
#wrap, #ref {
  font-size: 2em;
  border: solid blue;
  margin: 5px;
  width: 30ch;
}
@supports (word-boundary-detection: auto(th)) {
  #test {
    word-boundary-detection: manual;
  }
}
#test {
  width: 0;
  word-boundary-detection: auto(th);
}
</style>

<p>Test passes if the two boxes below are identical.

<div id=wrap>
  <div id=test>กรุงเทพคือสวยงาม</div>
</div>
<div id=ref>กรุงเทพคือสวยงาม</div>