W3C home > Mailing lists > Public > www-style@w3.org > December 2011

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

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Tue, 20 Dec 2011 17:24:08 +0100
Message-Id: <AFC8ACF6-B842-4685-90BC-DF008EC78046@crissov.de>
To: www-style list <www-style@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT