Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML"> |
michael@0 | 2 | <body> |
michael@0 | 3 | <!-- Test interactions between CSS font-size and scriptlevel changes --> |
michael@0 | 4 | <p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;"> |
michael@0 | 5 | <m:mstyle scriptlevel="+5"><m:mi>Id</m:mi></m:mstyle> |
michael@0 | 6 | <!-- Test that we can explicitly go below scriptminsize --> |
michael@0 | 7 | <m:mi style="font-size:10px;">Id</m:mi> |
michael@0 | 8 | <!-- Test that a relative font-size ignores the scriptlevel change in the same element --> |
michael@0 | 9 | <m:mstyle scriptlevel="+5" style="font-size:100%;"><m:mi>Id</m:mi></m:mstyle> |
michael@0 | 10 | </m:mstyle></m:math></p> |
michael@0 | 11 | |
michael@0 | 12 | <p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;"> |
michael@0 | 13 | <!-- Test that scriptlevel changes are incremental (this should be 24px) --> |
michael@0 | 14 | <m:mstyle scriptlevel="+1" style="font-size:48px;"><m:mstyle scriptlevel="+1"><m:mi>Id</m:mi></m:mstyle></m:mstyle> |
michael@0 | 15 | </m:mstyle></m:math></p> |
michael@0 | 16 | |
michael@0 | 17 | <p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;"> |
michael@0 | 18 | <!-- Decreasing the font size due to a scriptlevel change should do nothing when we're below minscriptsize --> |
michael@0 | 19 | <m:mstyle style="font-size:10px;"><m:mstyle scriptlevel="+1"><m:mi>Id</m:mi></m:mstyle></m:mstyle> |
michael@0 | 20 | <!-- but we can increase --> |
michael@0 | 21 | <m:mstyle style="font-size:10px;"><m:mstyle scriptlevel="-1"><m:mi>Id</m:mi></m:mstyle></m:mstyle> |
michael@0 | 22 | <m:mstyle style="font-size:10px;"><m:mstyle scriptlevel="-2"><m:mi>Id</m:mi></m:mstyle></m:mstyle> |
michael@0 | 23 | </m:mstyle></m:math></p> |
michael@0 | 24 | |
michael@0 | 25 | <p><m:math><m:mstyle scriptlevel="0" scriptsizemultiplier="0.5" scriptminsize="18px" style="font-size:48px;"> |
michael@0 | 26 | <!-- An absolute font-size value resets the unconstrained size to that value, so we |
michael@0 | 27 | can increase above that value with a negative scriptlevel change --> |
michael@0 | 28 | <m:mstyle scriptlevel="+5"><m:mstyle style="font-size:24px;"><m:mstyle scriptlevel="-1"><m:mi>Id</m:mi></m:mstyle></m:mstyle></m:mstyle> |
michael@0 | 29 | <!-- An relative font-size value is applied to the unconstrained size --> |
michael@0 | 30 | <m:mstyle scriptlevel="+2"><m:mstyle style="font-size:200%;"><m:mstyle scriptlevel="-1"><m:mi>Id</m:mi></m:mstyle></m:mstyle></m:mstyle> |
michael@0 | 31 | <!-- The unconstrained size does not cap the font size to below scriptminsize (so this is 18px) --> |
michael@0 | 32 | <m:mstyle scriptlevel="+2"><m:mstyle style="font-size:50%;"><m:mstyle scriptlevel="-1"><m:mi>Id</m:mi></m:mstyle></m:mstyle></m:mstyle> |
michael@0 | 33 | <!-- The unconstrained size cap the font size otherwise (so this is 12px) --> |
michael@0 | 34 | <m:mstyle scriptlevel="+2"><m:mstyle style="font-size:50%;" scriptminsize="0"><m:mstyle scriptlevel="-1"><m:mi>Id</m:mi></m:mstyle></m:mstyle></m:mstyle> |
michael@0 | 35 | </m:mstyle></m:math></p> |
michael@0 | 36 | |
michael@0 | 37 | </body> |
michael@0 | 38 | </html> |