summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-shaping-001.html
blob: 8846038d0fcdb3385b0aa94165f423d0a2bea007 (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
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: overflow-wrap:break-word and text-shaping</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#word-break-shaping">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#overflow-wrap-property">
<link rel="match" href="reference/overflow-wrap-shaping-001-ref.html">
<meta name="assert" content="Shaping characters are still shaped as if the word were not broken when a line is broken by overflow-wrap:break-word">
<style>
  @font-face {
    font-family: 'csstest_noto';
    src: url('/fonts/noto/NotoNaskhArabic-regular.woff2') format('woff2');
  }
  div {
    font-family: 'csstest_noto';
    font-size: 4em;
  }
  section {
    float: left; /* to sizing to the intrinsic min of the ref box*/
    position: relative;
  }
  #ref {
    border: solid orange;
    margin: 1rem;
  }
  #test {
    border: solid blue;
    position: absolute; /* to avoid influencing the size of the section */
    left: 1rem;
    right: 1rem;
    overflow-wrap: break-word;
  }
</style>

<p>Test passes if the blue and organge boxes are identical. Pay attention to characters at the left of the first line, and on the second line.
<section>
<div dir=rtl lang=ar id=ref>&#xFECB;&#xFE8E;&#xFE8B;&#xFEE0;<br>&#xFE94;</div>
<div dir=rtl lang=ar id=test>عائلة</div>
</section>