W3C home > Mailing lists > Public > www-style@w3.org > April 2014

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

From: Simon Pieters <simonp@opera.com>
Date: Thu, 17 Apr 2014 10:46:00 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>, "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style list" <www-style@w3.org>
Message-ID: <op.xegdayitidj3kv@simons-mbp>
On Tue, 15 Apr 2014 21:22:58 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  
wrote:

> 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.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2950

I now get "auto" in Gecko/Blink/IE, including older versions, but Presto  
gives the width in pixels. I guess I misremembered or was confused about  
which browser I was testing, sorry about that.

-- 
Simon Pieters
Opera Software
Received on Thursday, 17 April 2014 08:46:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:21 UTC