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 style="background: white;"> |
michael@0 | 5 | |
michael@0 | 6 | <!-- The visible part of the formulas below should be covered by the |
michael@0 | 7 | black rectangle when dir=rtl --> |
michael@0 | 8 | |
michael@0 | 9 | <div style="position: absolute; top: 5px; left: 5px;"> |
michael@0 | 10 | <!-- msup --> |
michael@0 | 11 | <math dir="rtl"> |
michael@0 | 12 | <msup> |
michael@0 | 13 | <mspace width="20px" height="20px"/> |
michael@0 | 14 | <mspace width="20px" height="20px" mathbackground="red"/> |
michael@0 | 15 | </msup> |
michael@0 | 16 | </math><br/> |
michael@0 | 17 | <!-- msub --> |
michael@0 | 18 | <math dir="rtl"> |
michael@0 | 19 | <msub> |
michael@0 | 20 | <mspace width="20px" height="20px"/> |
michael@0 | 21 | <mspace width="20px" height="20px" mathbackground="orange"/> |
michael@0 | 22 | </msub> |
michael@0 | 23 | </math><br/> |
michael@0 | 24 | <!-- msubsup --> |
michael@0 | 25 | <math dir="rtl"> |
michael@0 | 26 | <msubsup> |
michael@0 | 27 | <mspace width="20px" height="20px"/> |
michael@0 | 28 | <mspace width="20px" height="20px" mathbackground="green"/> |
michael@0 | 29 | <mspace width="20px" height="20px" mathbackground="blue"/> |
michael@0 | 30 | </msubsup> |
michael@0 | 31 | </math><br/> |
michael@0 | 32 | <!-- mmultiscripts --> |
michael@0 | 33 | <math dir="rtl"> |
michael@0 | 34 | <mmultiscripts> |
michael@0 | 35 | <mspace/> |
michael@0 | 36 | <mspace width="20px" height="20px" mathbackground="cyan"/> |
michael@0 | 37 | <mspace width="20px" height="20px" mathbackground="yellow"/> |
michael@0 | 38 | <mprescripts/> |
michael@0 | 39 | <mspace width="20px" height="20px"/> |
michael@0 | 40 | <mspace width="20px" height="20px"/> |
michael@0 | 41 | </mmultiscripts> |
michael@0 | 42 | </math><br/> |
michael@0 | 43 | <!-- munder (mo with movablelimits=true and displaystyle=false) --> |
michael@0 | 44 | <math dir="rtl"> |
michael@0 | 45 | <munder> |
michael@0 | 46 | <mpadded width="20px"> |
michael@0 | 47 | <mphantom> |
michael@0 | 48 | <mo movablelimits="true" displaystyle="false">|</mo> |
michael@0 | 49 | </mphantom> |
michael@0 | 50 | </mpadded> |
michael@0 | 51 | <mspace width="20px" height="20px" mathbackground="magenta"/> |
michael@0 | 52 | </munder> |
michael@0 | 53 | </math><br/> |
michael@0 | 54 | <!-- mover (mo with movablelimits=true and displaystyle=false) --> |
michael@0 | 55 | <math dir="rtl"> |
michael@0 | 56 | <mover> |
michael@0 | 57 | <mpadded width="20px"> |
michael@0 | 58 | <mphantom> |
michael@0 | 59 | <mo movablelimits="true" displaystyle="false">|</mo> |
michael@0 | 60 | </mphantom> |
michael@0 | 61 | </mpadded> |
michael@0 | 62 | <mspace width="20px" height="20px" mathbackground="cyan"/> |
michael@0 | 63 | </mover> |
michael@0 | 64 | </math><br/> |
michael@0 | 65 | <!-- munderover (mo with movablelimits=true and displaystyle=false) --> |
michael@0 | 66 | <math dir="rtl"> |
michael@0 | 67 | <munderover> |
michael@0 | 68 | <mpadded width="20px"> |
michael@0 | 69 | <mphantom> |
michael@0 | 70 | <mo movablelimits="true" displaystyle="false">|</mo> |
michael@0 | 71 | </mphantom> |
michael@0 | 72 | </mpadded> |
michael@0 | 73 | <mspace width="20px" height="20px" mathbackground="yellow"/> |
michael@0 | 74 | <mspace width="20px" height="20px" mathbackground="grey"/> |
michael@0 | 75 | </munderover> |
michael@0 | 76 | </math><br/> |
michael@0 | 77 | <!-- mfrac (bevelled=true) --> |
michael@0 | 78 | <math dir="rtl"> |
michael@0 | 79 | <mstyle mathcolor="white"> |
michael@0 | 80 | <mfrac bevelled="true"> |
michael@0 | 81 | <mspace width="20px" height="20px"/> |
michael@0 | 82 | <mspace width="20px" height="20px" mathbackground="red"/> |
michael@0 | 83 | </mfrac> |
michael@0 | 84 | </mstyle> |
michael@0 | 85 | </math><br/> |
michael@0 | 86 | <!-- mroot --> |
michael@0 | 87 | <math dir="rtl"> |
michael@0 | 88 | <mstyle mathcolor="white"> |
michael@0 | 89 | <mroot> |
michael@0 | 90 | <mspace width="20px" height="20px" mathbackground="orange"/> |
michael@0 | 91 | <mspace width="20px" height="20px"/> |
michael@0 | 92 | </mroot> |
michael@0 | 93 | </mstyle> |
michael@0 | 94 | </math><br/> |
michael@0 | 95 | <!-- msqrt --> |
michael@0 | 96 | <math dir="rtl"> |
michael@0 | 97 | <mstyle mathcolor="white"> |
michael@0 | 98 | <msqrt> |
michael@0 | 99 | <!-- Here, we assume that (width of radical + width of mspace) |
michael@0 | 100 | is greater than the width of the black rectangle (i.e. |
michael@0 | 101 | width of radical > 30 - 25 = 5px), so the test fails if the |
michael@0 | 102 | radical is placed on the left. --> |
michael@0 | 103 | <mspace width="25px" height="20px" mathbackground="grey"/> |
michael@0 | 104 | </msqrt> |
michael@0 | 105 | </mstyle> |
michael@0 | 106 | </math> |
michael@0 | 107 | </div> |
michael@0 | 108 | |
michael@0 | 109 | <div style="position: absolute; top: 5px; left: 5px;"> |
michael@0 | 110 | <div style="width: 30px; height: 500px; background: black;"></div> |
michael@0 | 111 | </div> |
michael@0 | 112 | |
michael@0 | 113 | </body> |
michael@0 | 114 | </html> |