[webkit-dev] testing strategy? - CJK line breaking tests
glenn at skynav.com
Tue Sep 4 18:07:42 PDT 2012
On Tue, Sep 4, 2012 at 11:26 PM, Dan Bernstein <mitz at apple.com> wrote:
> On Sep 4, 2012, at 5:50 AM, Glenn Adams <glenn at skynav.com> wrote:
> Alternatively, you can compute the with of each character with script
>> (without adding any new feature to WebKit).
> Unfortunately, that won't work since I can't access the width of
> individual lines produced by formatting a block.
> You can use Range’s getClientRects to get the widths of individual
> characters and to determine where a line breaks occur.
Thanks for that pointer. I wasn't aware of that feature. In any case, it
looks like the reftest approach is going to work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev