W3C home > Mailing lists > Public > www-math@w3.org > August 2004

Re: MathML in CSS

From: Bruce Miller <bruce.miller@nist.gov>
Date: Wed, 11 Aug 2004 02:08:42 -0400
Message-ID: <4119B7EA.2040300@nist.gov>
To: White Lynx <whitelynx@operamail.com>
CC: www-math@w3.org

White Lynx wrote:
>>My hope was that the 1st rule above 
>>  mfrac > *:first-child { vertical-align:bottom; }
>>would set the baseline of the numerator to be it's bottom, 
>>and that _that_ would become the baseline of the fraction.
> 
> Unfortunately doing this will not change anything. 
> It will just bottom-align content of numerator as a whole,
> baseline will still be content dependent. 

Aha, I see; I am thinking too TeX-like;
the vertical-align:bottom just says the numerator should align
it's bottom to the baseline of it's siblings (but has none), 
but it's baseline is unchanged.
Hmmm...

>>[This may also be a case where a strategic ::outside would allow us to
>>mess with the display & positioning of the numerator, without
>>affecting it's internal layout]
> 
> Yep, I think it is possible (but slightly complex) solution.
> In this case ::outside will be table-cell with fixed baseline, 
> and numerator itself could be inline-block with vertical-alignment 
> set to text-bottom. Theoretically it should work, but it would be nice 
> to have more simple solution.

In one sense, simpler doesn't matter where authors seldom if ever have
to write the rules for mathml fractions. But on the other hand, simpler
means it's more likely to actually work :>

I'll look further into this...

-- 
bruce.miller@nist.gov
http://math.nist.gov/~BMiller/
Received on Wednesday, 11 August 2004 06:09:18 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:40 UTC