W3C home > Mailing lists > Public > www-math@w3.org > January 2003

RE: Problem with MathPlayer and CSS

From: Bernhard Keil <Bernhard.Keil@soft4science.com>
Date: Wed, 8 Jan 2003 15:09:23 +0100
To: "David Carlisle" <davidc@nag.co.uk>
Cc: <www-math@w3.org>
Message-ID: <IIEOKCCPKDALHBHODAENEEKBCEAA.Bernhard.Keil@soft4science.com>

I have tested it with prefixes as well without the
universal stylesheet, just directly using the
MathPlayer plugin.

I can't find a way that MathPlayer will recognize
CSS definitions.


Bernhard Keil
mailto:Bernhard.Keil@soft4science.com

-------------------------------------------------------------
soft4science             Bernhard Keil
Nibelungenstr. 4        80639 Munich       Germany
+49 89 / 95 411 088  http://www.soft4science.com  
+49 173 / 72 53 669  http://www.MathML.net



-----Original Message-----
From: David Carlisle [mailto:davidc@nag.co.uk]
Sent: Wednesday, January 08, 2003 2:53 PM
To: Bernhard.Keil@soft4science.com
Cc: www-math@w3.org
Subject: Re: Problem with MathPlayer and CSS



   math {font-family:Times}

Because of Internet Explorer's slightly half baked interface to
behaviours MathPlayer has to have the math element prefixed.
If you are using the XSL stylesheet it will add the prefix mml:
(although I've had a request to make this shorter, and just m:) but it
doesn't change the css style element or referenced stylesheet, so I
think that would not match.

I think you need to use the prefixed name,
or the CSS2 namespace declaration. or use class attributes as in the
XHTML+MathML version of the MathML2 2nd edition draft where we have


.mathml-render {
font-family: serif;
font-size: 130%;
border: solid 4px green;
padding-left: 1em;
padding-right: 1em;
}


...



                     <td class="mathml-render" valign="middle">
                        <math
                        xmlns="http://www.w3.org/1998/Math/MathML">


and it seems to work OK and MathPlayer pick up the serif font.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Wednesday, 8 January 2003 09:09:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:52 GMT