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

Re: [cssom-view] Which APIs should be 'double' vs. 'long'

From: Trav Stone <travtrilogi@gmail.com>
Date: Wed, 02 Dec 2015 08:42:13 +0000
Message-ID: <CAJg5QxAhBRq1WmAJHXNJh8quDuA29PX0DNrcvr1Vi6sjLQQQPg@mail.gmail.com>
To: www-style@w3.org

Jumping in this thread; it would definitely be helpful to have some API
that returns the exact values that the browser is operating upon. See the
following bugs I posted:


In my use-case, what's of interest is knowing (via JS) when the browser is
generating an ellipsis. Most of the time this works with integers, but
there are cases where it fails. Unfortunately in the application I'm
working on there's sufficient data being displayed to almost guarantee that
the problem will surface on any given page.

Also worth noting: in my use-case I'm working with text in a TD element, so
getClientBoundingRect isn't an option unless I want to add extra markup.
Given that our application is so data-intensive (with corresponding markup
complexity), extra markup is a fairly onerous burden.

I understand the issues with changing the int values of the existing
API(s), so I am strongly in support of making a new API to resolve the

Many thanks!

Received on Monday, 7 December 2015 13:06:19 UTC

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