- From: Alexis Menard <alexis.menard@openbossa.org>
- Date: Wed, 25 Jan 2012 15:05:34 -0300
- To: www-style@w3.org
Hi, I have some question related to the length of the style property of a given element. I couldn't find something related to it in the CSS spec (if there is please link it to me and I apologize for the noise). A bit of context : I'm trying to fix https://bugs.webkit.org/show_bug.cgi?id=73002 where WebKit behaves inconsistently for shorthand and the length of the style depending what you set on it. element.style.cssText = "border: 0;" and element.style.cssText = "border: inherit;" are not returning the same "element.style.length" Opera and Firefox are returning something consistent for the length if you set initial, inherit, or any value. WebKit doesn't. Now my questions are the following ones : Should we expand the longhands when initial or inherit is set on a shorthand? Should the shorthands be part of the list of properties of the style, so part of the count/length? When I set initial to a shorthand will it mean that the longhands will have initial implicitely set or would it be explicitely? Thanks for the answers. -- Alexis Menard (darktears) Software Engineer INdT Recife Brazil
Received on Wednesday, 25 January 2012 18:06:06 UTC