W3C home > Mailing lists > Public > www-html@w3.org > May 2002

universal style sheet bug

From: Bill Moss <bmoss@clemson.edu>
Date: Sat, 18 May 2002 13:50:27 -0400
Message-Id: <5.1.0.14.2.20020518132442.00a9aa68@mail.clemson.edu>
To: www math <www-html@w3.org>
In this experiment I am looking at how Mozilla 0.9.9 and IE 
5.5+MSXML3+MathPlayer render a displayed equation that is centered along 
with an equation number that is right justified, made using a table. 
Consider two documents containing the following lines.
_______________________________________________

<head>
<title>MathPlayer Example</title>
</head>
<body>
<p>This is a displayed equation with a page number. The equation is
centered and the page number is justified to the right margin. We want to see
how this equation displays using IE 5.5 + MSXML3 + MathPlayer.</p>
<table width="100%" border="0">
   <tr>
     <td width="5%"></td>
     <td align="center" width="90%">
<m:math  display='block'>
  <m:mrow>
   <m:mfrac>
    <m:mrow>
     <m:mo>&#x02212;</m:mo><m:mi>b</m:mi><m:mo>&#x000B1;</m:mo><m:msqrt>
      <m:mrow>
       <m:msup>
        <m:mi>b</m:mi>
        <m:mn>2</m:mn>
       </m:msup>
       <m:mo>&#x02212;</m:mo><m:mn>4</m:mn><m:mi>a</m:mi><m:mi>c</m:mi>
      </m:mrow>
     </m:msqrt>
    </m:mrow>
    <m:mrow>
     <m:mn>2</m:mn><m:mi>a</m:mi>
    </m:mrow>
   </m:mfrac>
  </m:mrow>
</m:math></td>
     <td align="right" width="5%">(1)</td>
   </tr>
</table>
<p>This is the following text.</p>
</body>
</html>
__________________________________

The document math.html is created by prepending the three lines

<html xmlns:m="http://www.w3.org/1998/Math/MathML">
<object id="MathPlayer" 
classid="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></object>
<?import namespace="m" implementation="#MathPlayer"?>

math.html is displayed correctly by IE 5.5 + MSXML3 + MathPlayer, that is, 
the equation is centered and the equation number is right justified.

The document math.xml is created by prepending the two lines

<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:m="http://www.w3.org/1998/Math/MathML">

math.xml is displayed correctly by Amaya 6.1 and Mozilla 0.9.9, that is, 
the equation is centered and the equation number is right justified.

math.xml is NOT displayed correctly by IE 5.5 + MSXML3 + MathPlayer, that 
is, the equation is NOT centered and the equation number is NOT right 
justified. This behavior may be a bug in the universal style sheet. Also, 
if the BACK button is hit, it takes IE a long time to show the previous page.


Bill Moss
Professor Mathematical Sciences
Clemson University
Clemson, SC 29634-0975
864.656.5225
http://www.math.clemson.edu/~bmoss
Received on Saturday, 18 May 2002 13:50:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:51 GMT