Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head><title>Test dir=rtl</title></head> |
michael@0 | 4 | <body> |
michael@0 | 5 | |
michael@0 | 6 | <!-- mmultiscripts. The formulas |
michael@0 | 7 | |
michael@0 | 8 | 1 3 3 1 |
michael@0 | 9 | X in dir=ltr and X in dir=rtl |
michael@0 | 10 | 2 4 4 2 |
michael@0 | 11 | |
michael@0 | 12 | do not match perfectly, so we use an alternative == reftest here |
michael@0 | 13 | which is less strict. --> |
michael@0 | 14 | |
michael@0 | 15 | <!-- five vertical bands: red, green, magenta, blue and yellow --> |
michael@0 | 16 | <div style="position: absolute; |
michael@0 | 17 | top: 5px; left: 5px; width: 200px; height: 200px;"> |
michael@0 | 18 | <div style="position: absolute; width: 40px; height: 200px; |
michael@0 | 19 | left: 0px; background: red;"></div> |
michael@0 | 20 | <div style="position: absolute; width: 40px; height: 200px; |
michael@0 | 21 | left: 40px; background: green;"></div> |
michael@0 | 22 | <div style="position: absolute; width: 40px; height: 200px; |
michael@0 | 23 | left: 80px; background: magenta;"></div> |
michael@0 | 24 | <div style="position: absolute; width: 40px; height: 200px; |
michael@0 | 25 | left: 120px; background: blue;"></div> |
michael@0 | 26 | <div style="position: absolute; width: 40px; height: 200px; |
michael@0 | 27 | left: 160px; background: yellow;"></div> |
michael@0 | 28 | </div> |
michael@0 | 29 | |
michael@0 | 30 | <!-- a mmultiscripts element whose children are squares of different |
michael@0 | 31 | colors. In dir=rtl, the color of each square should match the one of |
michael@0 | 32 | the band over which the square is positioned. Hence, this |
michael@0 | 33 | mmultiscripts should not be visible. --> |
michael@0 | 34 | <div style="position: absolute; |
michael@0 | 35 | top: 5px; left: 5px; width: 200px; height: 200px;"> |
michael@0 | 36 | <math dir="rtl"> |
michael@0 | 37 | <mmultiscripts> |
michael@0 | 38 | <mspace width="40px" height="40px" mathbackground="magenta"/> |
michael@0 | 39 | |
michael@0 | 40 | <mspace width="40px" height="40px" mathbackground="green"/> |
michael@0 | 41 | <mspace width="40px" height="40px" mathbackground="green"/> |
michael@0 | 42 | |
michael@0 | 43 | <mspace width="40px" height="40px" mathbackground="red"/> |
michael@0 | 44 | <mspace width="40px" height="40px" mathbackground="red"/> |
michael@0 | 45 | |
michael@0 | 46 | <mprescripts/> |
michael@0 | 47 | |
michael@0 | 48 | <mspace width="40px" height="40px" mathbackground="yellow"/> |
michael@0 | 49 | <mspace width="40px" height="40px" mathbackground="yellow"/> |
michael@0 | 50 | |
michael@0 | 51 | <mspace width="40px" height="40px" mathbackground="blue"/> |
michael@0 | 52 | <mspace width="40px" height="40px" mathbackground="blue"/> |
michael@0 | 53 | </mmultiscripts> |
michael@0 | 54 | </math> |
michael@0 | 55 | </div> |
michael@0 | 56 | |
michael@0 | 57 | <!-- We add black vertical bands to cover spaces between the children of |
michael@0 | 58 | mmultiscripts. --> |
michael@0 | 59 | <div style="position: absolute; |
michael@0 | 60 | top: 5px; left: 5px; width: 200px; height: 200px;"> |
michael@0 | 61 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 62 | left: -5px; background: black;"></div> |
michael@0 | 63 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 64 | left: 35px; background: black;"></div> |
michael@0 | 65 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 66 | left: 75px; background: black;"></div> |
michael@0 | 67 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 68 | left: 115px; background: black;"></div> |
michael@0 | 69 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 70 | left: 155px; background: black;"></div> |
michael@0 | 71 | <div style="position: absolute; width: 10px; height: 200px; |
michael@0 | 72 | left: 195px; background: black;"></div> |
michael@0 | 73 | </div> |
michael@0 | 74 | |
michael@0 | 75 | </body> |
michael@0 | 76 | </html> |