summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/bidi/reference/bidi-lines-001-ref.html
blob: ab13fef116c4eba70a09e01558425bb508173d90 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text Test: unicode-bidi: plaintext and paragraphs with strong directionality</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<style>
section {
    text-align: start;
    font-size: 2em;
    border: solid;
    padding: 0 0.5ch;
    width: 10em;
}
</style>

<p>This test passes if all instances of “français” are left aligned, and all instances of “فارسی” are right aligned within the box below.

<section>
    <div dir=ltr>français</div>
    <div dir=rtl>فارسی</div>
    <div dir=ltr>français</div>
    <div dir=rtl>فارسی</div>
    <div dir=ltr>français</div>
    <div dir=rtl>فارسی</div>
</section>