layout/reftests/mathml/displaystyle-3.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 class="reftest-wait">
     3   <head>
     4     <title>displaystyle</title>
     5     <meta charset="utf-8"/>
     6     <script type="text/javascript">
     7       function doTest() {
     8         document.getElementById("m1").setAttribute("displaystyle", "true");
     9         document.getElementById("m2").setAttribute("displaystyle", "true");
    10         document.getElementById("m3").setAttribute("displaystyle", "true");
    11         document.getElementById("m4").removeAttribute("displaystyle");
    12         document.getElementById("m5").removeAttribute("displaystyle");
    13         document.getElementById("m6").removeAttribute("displaystyle");
    14         document.documentElement.removeAttribute("class");
    15       }
    16       window.addEventListener("MozReftestInvalidate", doTest, false);
    17     </script>
    18   </head>
    19   <body>
    21     <!-- Test dynamic change of displaystyle -->
    22     <math id="m1">
    23       <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    24       <mfrac><mi>x</mi><mi>y</mi></mfrac>
    25     </math>
    26     <math>
    27       <mstyle id="m2">
    28         <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    29         <mfrac><mi>x</mi><mi>y</mi></mfrac>
    30       </mstyle>
    31     </math>
    32     <math>
    33       <mtable id="m3">
    34         <mtr>
    35           <mtd>
    36             <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    37             <mfrac><mi>x</mi><mi>y</mi></mfrac>
    38           </mtd>
    39         </mtr>
    40       </mtable>
    41     </math>
    42     <math id="m4" displaystyle="true">
    43       <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    44       <mfrac><mi>x</mi><mi>y</mi></mfrac>
    45     </math>
    46     <math>
    47       <mstyle id="m5" displaystyle="true">
    48         <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    49         <mfrac><mi>x</mi><mi>y</mi></mfrac>
    50       </mstyle>
    51     </math>
    52     <math>
    53       <mtable id="m6" displaystyle="true">
    54         <mtr>
    55           <mtd>
    56             <munder><mo movablelimits="true">O</mo><mo>O</mo></munder>
    57             <mfrac><mi>x</mi><mi>y</mi></mfrac>
    58           </mtd>
    59         </mtr>
    60       </mtable>
    61     </math>
    63   </body>
    64 </html>

mercurial