зеркало из https://github.com/mozilla/pjs.git
Try again, without the test comparing span background with mathml background. I guess that can fail if the body text font is larger than the MathML font.
This commit is contained in:
Родитель
299e34240b
Коммит
db98fbdb2c
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
|
||||
<body>
|
||||
|
||||
<!-- ... assuming that color inherits -->
|
||||
<p>
|
||||
<span style="color: green"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span style="color: green"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span style="color: green"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
</p>
|
||||
|
||||
<!-- ... assuming that color inherits -->
|
||||
<p>
|
||||
<span><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span style="color: green"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span style="color: green"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
</p>
|
||||
|
||||
<!-- ... assuming that mathbackground works on m:mstyle -->
|
||||
<p><m:math><m:mstyle mathbackground="lightgreen"><m:mi>Y</m:mi></m:mstyle></m:math></p>
|
||||
<p><m:math><m:mstyle mathbackground="lightgreen"><m:mi>Y</m:mi></m:mstyle></m:math></p>
|
||||
|
||||
<!-- ... assuming that mathbackground works on m:mstyle -->
|
||||
<p><m:math><m:mstyle><m:mfenced><m:mi>x</m:mi></m:mfenced></m:mstyle></m:math></p>
|
||||
<p><m:math><m:mstyle mathbackground="lightgreen"><m:mfenced><m:mi>x</m:mi></m:mfenced></m:mstyle></m:math></p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,27 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
|
||||
<body>
|
||||
|
||||
<!-- Test that CSS color works on m:math and m:mstyle -->
|
||||
<p>
|
||||
<span><m:math style="color: green;"><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span><m:math><m:mstyle style="color: green;"><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span><m:math><m:mstyle><m:mi style="color: green;">X</m:mi></m:mstyle></m:math></span>
|
||||
</p>
|
||||
|
||||
<!-- Test that mathcolor works on m:mi and m:mstyle but not m:math -->
|
||||
<p>
|
||||
<span><m:math mathcolor="green"><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span><m:math><m:mstyle mathcolor="green"><m:mi>X</m:mi></m:mstyle></m:math></span>
|
||||
<span><m:math><m:mstyle><m:mi mathcolor="green">X</m:mi></m:mstyle></m:math></span>
|
||||
</p>
|
||||
|
||||
<!-- Test that mathbackground and CSS background work on m:mi -->
|
||||
<p><m:math><m:mi mathbackground="lightgreen">Y</m:mi></m:math></p>
|
||||
<p><m:math><m:mi style="background: lightgreen">Y</m:mi></m:math></p>
|
||||
|
||||
<!-- Test that mathbackground does not work on m:mfenced, but CSS background does -->
|
||||
<p><m:math><m:mfenced mathbackground="lightgreen"><m:mi>x</m:mi></m:mfenced></m:math></p>
|
||||
<p><m:math><m:mfenced style="background: lightgreen;"><m:mi>x</m:mi></m:mfenced></m:math></p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,5 @@
|
|||
<html style="background: #88F; color: #88F;" xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,11 @@
|
|||
<html style="background: #88F; color: #88F;" xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
|
||||
<body>
|
||||
|
||||
<!-- Test that text that should be invisible is invisible (assuming text is drawn at all) -->
|
||||
<p>This should be invisible.</p>
|
||||
|
||||
<!-- Test that color inherits into MathML (assuming MathML text is drawn at all) -->
|
||||
<p><m:math><m:mi>x</m:mi></m:math></p>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -540,6 +540,8 @@ skip-if(MOZ_WIDGET_TOOLKIT!="windows") == 391045.html 391045-ref.html # windows-
|
|||
== 393671-1.html 393671-1-ref.html
|
||||
== 393671-2.html 393671-2-ref.html
|
||||
== 393671-3.html 393671-3-ref.html
|
||||
== 393760-1.xml 393760-1-ref.xml
|
||||
== 393760-2.xml 393760-2-ref.xml
|
||||
== 394111-1.html about:blank # Really an assertion test rather than a rendering test
|
||||
== 394534-1.html 394534-1-ref.html
|
||||
== 394676-1.xhtml 394676-1-ref.xhtml
|
||||
|
|
Загрузка…
Ссылка в новой задаче