- From: Glenn Adams <glenn@skynav.com>
- Date: Tue, 31 Jan 2012 12:09:51 -0700
- To: Alexis Menard <alexis.menard@openbossa.org>
- Cc: www-style@w3.org
- Message-ID: <CACQ=j+f-gO8dvwEn2mCfr119G_9j5KgReaG8Dusy2LkjQZiJVA@mail.gmail.com>
On Tue, Jan 31, 2012 at 4:15 AM, Alexis Menard <alexis.menard@openbossa.org>wrote: > I didn't get any answer so I'm starting to wonder why. > Further development and editing on CSSOM is starting to ramp up again with the recent addition of new editor resources. Your questions have been noted. My current thinking, on which I would like to hear from other commenters, is that CSSStyleDeclaration.length should include all non-ignored shorthand properties that are declared in the associated CSS declaration block; i.e., if CSSStyleDeclaration.cssText includes 5 non-ignored properties, of either longhand or shorthand form, then length should be 5. This would apply to both border:inherit (CSS2...) and border:initial (CSS3) if the appear in cssText. If someone feels otherwise, please say so. > Did I forgot to prefix the subject or something else? > > Thank you. > > On Wed, Jan 25, 2012 at 3:05 PM, Alexis Menard > <alexis.menard@openbossa.org> wrote: > > 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 > > > > -- > Alexis Menard (darktears) > Software Engineer > INdT Recife Brazil > >
Received on Tuesday, 31 January 2012 19:10:39 UTC