W3C home > Mailing lists > Public > www-style@w3.org > January 2012

Re: [css3-text] grapheme clusters across element boundary

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 17 Jan 2012 18:08:22 -0800
Message-ID: <4F162996.6080901@inkedblade.net>
To: www-style@w3.org
On 01/17/2012 12:40 AM, Jonathan Kew wrote:
> On 16 Jan 2012, at 23:15, fantasai wrote:
>> Added:
>>   | The rendering characteristics of a<i>character</i>  divided by an
>>   | element boundary is undefined: it may be rendered as belonging to
>>   | either side of the boundary, or as some approximation of belonging
>>   | to both. Authors should avoid dividing grapheme clusters by element
>>   | boundaries.
>> How's that?
> That appears to specifically _discourage_ examples such as colouring a diacritic differently from its base character, which is a use case that gets requested from time to time:
>    <div style="font:18px Times">
>      Careful authors use the spelling
>      ‘na&#x131;<span style="color:red">&#x308;</span>ve’
>      rather than
>      ‘na&#x131;<span style="color:red">&#x307;</span>ve’.
>    </div>
> Support for this is currently quite limited (the above renders nicely in Gecko on OS X, where the Times font does not use precomposed glyphs for these combinations, but the colour is lost on a platform where Times is replaced by Times New Roman, for example); still, it seems unfortunate to tell authors that they shouldn't be attempting to do this at all, rather than just warning them that the desired rendering may not (yet?) be widely implemented.

Fair enough. I'll just note that the rendering might vary.

Received on Wednesday, 18 January 2012 02:08:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:10 UTC