File: direction-overall-003.html

package info (click to toggle)
firefox 143.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,617,328 kB
  • sloc: cpp: 7,478,492; javascript: 6,417,157; ansic: 3,720,058; python: 1,396,372; xml: 627,523; asm: 438,677; java: 186,156; sh: 63,477; makefile: 19,171; objc: 13,059; perl: 12,983; yacc: 4,583; cs: 3,846; pascal: 3,405; lex: 1,720; ruby: 1,003; exp: 762; php: 436; lisp: 258; awk: 247; sql: 66; sed: 53; csh: 10
file content (94 lines) | stat: -rw-r--r-- 4,000 bytes parent folder | download | duplicates (14)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Verify dir attribute on various containers</title>
    <link rel="help" href="https://w3c.github.io/mathml-core/#attributes-common-to-html-and-mathml-elements">
    <link rel="help" href="https://w3c.github.io/mathml-core/#css-styling">
    <meta name="assert" content="Verify dir attribute on various mmultiscripts.">
    <link rel="match" href="direction-overall-003-ref.html">
    <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
    <style>
      math {
          /* Ensure the space after script is 30px */
          font: 10px spaceafterscript3000;
      }
      @font-face {
          font-family: spaceafterscript3000;
          src: url("/fonts/math/scripts-spaceafterscript3000.woff");
      }
    </style>
  </head>
  <body>

    <!-- mmultiscripts. The formulas

         1 3                 3 1
          X  in dir=ltr  and  X  in dir=rtl
         2 4                 4 2

         do not match perfectly, so we use an alternative == reftest here
         which is less strict. -->

    <!-- five vertical bands: red, green, magenta, blue and yellow -->
    <div style="position: absolute;
                top: 5px; left: 5px; width: 200px; height: 200px;">
      <div style="position: absolute; width: 70px; height: 200px;
                  left: 0px; background: red;"></div>
      <div style="position: absolute; width: 70px; height: 200px;
                  left: 70px; background: green;"></div>
      <div style="position: absolute; width: 70px; height: 200px;
                  left: 140px; background: magenta;"></div>
      <div style="position: absolute; width: 70px; height: 200px;
                  left: 210px; background: blue;"></div>
      <div style="position: absolute; width: 70px; height: 200px;
                  left: 280px; background: yellow;"></div>-->
    </div>

    <!-- a mmultiscripts element whose children are squares of different
         colors. In dir=rtl, the color of each square should match the one of
         the band over which the square is positioned. Hence, this
         mmultiscripts should not be visible. -->
    <div style="position: absolute;
                top: 5px; left: 5px; width: 200px; height: 200px;">
      <math dir="rtl">
        <mmultiscripts>
          <mspace width="40px" height="40px" mathbackground="magenta"/>

          <mspace width="40px" height="40px" mathbackground="green"/>
          <mspace width="40px" height="40px" mathbackground="green"/>

          <mspace width="40px" height="40px" mathbackground="red"/>
          <mspace width="40px" height="40px" mathbackground="red"/>

           <mprescripts/>

          <mspace width="40px" height="40px" mathbackground="yellow"/>
          <mspace width="40px" height="40px" mathbackground="yellow"/>

          <mspace width="40px" height="40px" mathbackground="blue"/>
          <mspace width="40px" height="40px" mathbackground="blue"/>
        </mmultiscripts>
      </math>
    </div>

    <!-- We add black vertical bands to cover spaces between the children of
         mmultiscripts. -->
    <div style="position: absolute;
                top: 5px; left: 5px; width: 200px; height: 200px;">
      <div style="position: absolute; width: 10px; height: 200px;
                  left: -5px; background: black;"></div>
      <div style="position: absolute; width: 10px; height: 200px;
                  left: 65px; background: black;"></div>
      <div style="position: absolute; width: 10px; height: 200px;
                  left: 135px; background: black;"></div>
      <div style="position: absolute; width: 10px; height: 200px;
                  left: 205px; background: black;"></div>
      <div style="position: absolute; width: 10px; height: 200px;
                  left: 275px; background: black;"></div>
      <div style="position: absolute; width: 10px; height: 200px;
                  left: 345px; background: black;"></div>
    </div>

  </body>
</html>