Re: [CSS2.1][CSSOM] "Used Value" and "auto"

Thanks Boris, I'm right there with you. The bug I posted already
addresses this: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16389

The problem is two fold: most browsers already convert percentage to
pixel for top/left/bottom/right, but they also return auto.

I have bugs out in webkit to correct both percentage and auto, and a
bug out against CSSOM to amend to reflect this reality.

Mike Sherov
Lead Programmer
SNAP Interactive, Inc.
Ticker: STVI.OB

Sent Via Mobile: Please excuse my grammar, tone, and punctuation. My
thumbs can't create flowery prose.

On Jul 12, 2012, at 8:20 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 7/12/12 2:35 AM, Mike Sherov wrote:
>> I'm working with Ryosuke Niwa on correcting the behavior of
>> getComputedStyle(elem).top/left/right/bottom
>
> Note that right now the current CSSOM draft says that for top/left/right/bottom the computed value is returned, not the used value.
>
> So if you want to convert percentages to pixels, you also need to change the definition of resolved value to move top/left/right/bottom into the used value bucket.
>
> But yes, "auto" is never a used value for top/left/right/bottom for positioned things, as far as I can tell.  Though CSS2.1 sure could be clearer about used values in general...
>
> -Boris
>

Received on Thursday, 12 July 2012 12:24:40 UTC