Re: [css-cascade][cssom] Used value of non-applying properties?

On Mon, Apr 14, 2014 at 7:57 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 4/14/14 5:26 PM, Tab Atkins Jr. wrote:
>>
>> CSSOM currently defines that if the property applies to the element,
>> the resolved value is the used value; otherwise it's the computed
>> value.  This gets around the issue, and fits with what Cascade says.
>> However, only WebKit/Blink do this.  FF and IE appear to return the
>> layout'd size of the element for width/height, at least.
>
> Er...  Firefox definitely returns the computed value for .width on the
> computed style of a non-replaced inline (modulo some min-width/max-width
> interactions), and similar for height.
>
> It might help if you made it clear which exact cases you tested here and
> how.

Hm, I'll let zcorpan chime in here - he was telling me that testing
'width' on an inline returns the layouted width in Firefox.

~TJ

Received on Tuesday, 15 April 2014 19:23:46 UTC