Re: [selectors4][css3-text] Plaintext Fallback Characters

Tab Atkins Jr. (2011-12-20 17:05):
> On Tue, Dec 20, 2011 at 4:09 AM, Christoph Päper
>> 
>>  <span class="frac">1&nbsp;<sup>2</sup>&frasl;<sub>3</sub></span> – HTML4
>> 
>> The problem is that you have to type the separator and the slash, then remove them with “display: none;”.
> 
> The best way is to type it as "<span>1 2/3</span>", and apply a font
> with the appropriate ligatures to display the 2/3 specially.

That only works for fairly simple fractions. Also, such a font may not be available or it may not match the rest of the text nicely.

> Another good solution would be to petition the MathML WG to allow a /
> in <mfrac> between the <mn>s, to allow decent fallback behavior.

As I tried to illustrate it’s a problem common to several markup languages for different usecases. Therefore a general CSS solution would be preferable.

Received on Tuesday, 20 December 2011 16:24:45 UTC