W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: [css3-values] RE: CSSStyleDeclaration#length and shorthands.

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 01 Feb 2012 16:25:13 -0500
Message-ID: <4F29ADB9.5020508@mit.edu>
To: www-style@w3.org
On 2/1/12 4:20 PM, Boris Zbarsky wrote:
> On 2/1/12 4:04 PM, Brian Manthos wrote:
>> Example A
>>
>> <div style=”border: red dashed 1px;”>
>>
>> Example B
>>
>> <div style=”border-color: red; border-style: solid; border-width: 2px;”>
>>
>> JavaScript then queries…
>>
>> 1.document.getElementsByTagName(‘div’)[0].style.border
>>
>> 2.document.getElementsByTagName(‘div’)[0].style.border-color
>>
>> I would argue that the answers should be…
>>
>> A1 “red dashed 1px”
>>
>> A2 “red”
>>
>> B1 “red dashed 1px”
>>
>> B2 “red”
>
> Yes (modulo 1px vs 2px and solid vs dashed and borderColor vs
> border-color).

And modulo the spec needing to define whether it's "red dashed 1px" or 
"1px dashed red" or one of the other 4 options.

-Boris
Received on Wednesday, 1 February 2012 21:25:42 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT