[Webkit-unassigned] [Bug 73002] Incorrect value of CSSStyleDeclaration#length when a shorthand property is inherit or initial

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 23 20:08:26 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=73002





--- Comment #2 from Lea Verou <lea at verou.me>  2011-11-23 20:08:26 PST ---
(In reply to comment #1)
> Please clarify the expected result, I found that the value of length matched the number properties in the value of cssText when read back.

When shorthands are set to any other value, they are expanded into their longhand properties, as can be observed in the first 2 examples. This is consistent in every browser, even though the exact counts may differ. 

Webkit differentiates its behavior when inherit and initial are used and doesn't expand the shorthand properties, thus causing inconsistency which can break scripts depending on the same count for any value. Every other browser tested consistently expanded shorthands regardless of their value, as can be observed in examples 3-6. 
If cssText differentiates its behavior in that way, then I would assume that's buggy too. The spec is a bit unclear as to what is supposed to happen, but the de facto standard behavior of the other UAs is different to what Webkit does.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list