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

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

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Mon, 16 Jan 2012 18:31:02 +0800
Message-ID: <4F13FC66.6090500@csail.mit.edu>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: WWW Style <www-style@w3.org>
(12/01/16 5:25), Boris Zbarsky wrote:
> On 1/15/12 11:07 AM, Glenn Adams wrote:
>> Looks like Firefox 9 does the best job with this, though not completely
>> with ZWJ.
>
> Supporting reasonable text flow across element boundaries (grapheme
> clusters, ligatures, shaping, etc) is a core part of how the text
> layout system in Gecko is designed.  We consider that a pretty basic
> requirement for text rendering...

I was indeed quite amazed to see the following example work in Firefox
(and only in Firefox):

data:text/html,<big></big><big></big><script>var big =
document.querySelector('big'); big.textContent= "\ud834";
big.nextSibling.textContent = "\udf06";</script>


Cheers,
Kenny
Received on Monday, 16 January 2012 10:32:37 GMT

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