layout/reftests/mathml/scriptlevel-1-ref.html

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 <!doctype html>
     2 <html>
     3   <head>
     4     <title>scriptlevel</title>
     5     <meta charset="utf-8"/>
     6   </head>
     7   <body>
     9     <!-- Test scriptlevel on mstyle -->
    10     <math>
    11       <mstyle>
    12         <mtext>O</mtext>
    13         <mstyle mathsize="200%"><mtext>O</mtext></mstyle>
    14       </mstyle>
    15     </math>
    17     <!-- The mfrac element sets displaystyle to "false", or if it was already
    18          false increments scriptlevel by 1, within numerator and denominator.
    19       -->
    20     <math>
    21       <mstyle>
    22         <mstyle displaystyle="false">
    23           <mfrac>
    24             <mtext mathsize="200%">O</mtext>
    25             <mtext mathsize="200%">O</mtext>
    26           </mfrac>
    27         </mstyle>
    28         <mstyle displaystyle="true">
    29           <mfrac>
    30             <mtext>O</mtext>
    31             <mtext>O</mtext>
    32           </mfrac>
    33         </mstyle>
    34       </mstyle>
    35     </math>
    37     <!--    The mroot element increments scriptlevel by 2, and sets
    38             displaystyle to "false", within index, but leaves both attributes
    39             unchanged within base.
    40             The msqrt element leaves both attributes unchanged within its
    41             argument. -->
    42     <math>
    43       <mstyle>
    44         <mroot>
    45           <mtext>O</mtext>
    46           <mtext mathsize="400%">O</mtext>
    47         </mroot>
    48         <msqrt>
    49           <mtext>O</mtext>
    50         </msqrt>
    51       </mstyle>
    52     </math>
    54 <!--
    55     The msub element [...] increments scriptlevel by 1, and sets displaystyle to
    56    "false", within subscript, but leaves both attributes unchanged within base.
    58    The msup element [...] increments scriptlevel by 1, and sets displaystyle to
    59    "false", within superscript, but leaves both attributes unchanged within
    60    base.
    62    The msubsup element [...] increments scriptlevel by 1, and sets displaystyle
    63    to "false", within subscript and superscript, but leaves both attributes
    64    unchanged within base.
    66    The mmultiscripts element increments scriptlevel by 1, and sets displaystyle
    67    to "false", within each of its arguments except base, but leaves both
    68    attributes unchanged within base.
    69    -->
    70     <math>
    71       <mstyle>
    72         <msub>
    73           <mtext>O</mtext>
    74           <mtext mathsize="200%">O</mtext>
    75         </msub>
    76         <msup>
    77           <mtext>O</mtext>
    78           <mtext mathsize="200%">O</mtext>
    79         </msup>
    80         <msubsup>
    81           <mtext>O</mtext>
    82           <mtext mathsize="200%">O</mtext>
    83           <mtext mathsize="200%">O</mtext>
    84         </msubsup>
    85         <mmultiscripts>
    86           <mtext>O</mtext>
    87           <mtext mathsize="200%">O</mtext>
    88           <mtext mathsize="200%">O</mtext>
    89           <mprescripts/>
    90           <mtext mathsize="200%">O</mtext>
    91           <mtext mathsize="200%">O</mtext>
    92         </mmultiscripts>
    93       </mstyle>
    94     </math>
    96 <!-- 
    97    The munder element [...] always sets displaystyle to "false" within the
    98    underscript, but increments scriptlevel by 1 only when accentunder is
    99    "false". Within base, it always leaves both attributes unchanged.
   101    The mover element [...] always sets displaystyle to "false" within
   102    overscript, but increments scriptlevel by 1 only when accent is "false".
   103    Within base, it always leaves both attributes unchanged.
   105    The munderover [..] always sets displaystyle to "false" within underscript
   106    and overscript, but increments scriptlevel by 1 only when accentunder or
   107    accent, respectively, are "false". Within base, it always leaves both
   108    attributes unchanged.
   109 -->   
   110     <math>
   111       <mstyle>
   112         <munder>
   113           <mtext>O</mtext>
   114           <mtext mathsize="200%">O</mtext>
   115         </munder>
   116         <mover>
   117           <mtext>O</mtext>
   118           <mtext mathsize="200%">O</mtext>
   119         </mover>
   120         <munderover>
   121           <mtext>O</mtext>
   122           <mtext mathsize="200%">O</mtext>
   123           <mtext mathsize="200%">O</mtext>
   124         </munderover>
   125       </mstyle>
   126     </math>
   128   </body>
   129 </html>

mercurial