Add reftests for handling of mathbackground attribute

This commit is contained in:
jruderman@hmc.edu 2008-01-17 20:41:42 -08:00
Родитель 2c611346d3
Коммит 74fdb0b994
5 изменённых файлов: 84 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,33 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
<body>
<!-- ... assuming that backgrounds shine through -->
<p>
<span style="background: lightgreen;"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
<span style="background: lightgreen;"><m:math><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
</p>
<!-- ... 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,33 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
<body>
<!-- Test that background works on m:math and m:mstyle -->
<p>
<span><m:math style="background: lightgreen;"><m:mstyle><m:mi>X</m:mi></m:mstyle></m:math></span>
<span><m:math><m:mstyle style="background: lightgreen;"><m:mi>X</m:mi></m:mstyle></m:math></span>
</p>
<!-- 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