DescriptionFix 'border' serialization to fail in cssText when it is invalid
Currently we serialize 'border' correctly in e.style.border, but when
reading cssText (which serializes an entire declaration) we sometimes
get this wrong. Since the 'border' shorthand always sets the four
(top bottom left right) longhands for each type (color style width)
to the same value, if any of the types have unequal longhands then
seialization should fail.
The goal here is to make cssText serialization do the same thing as
the other serialization, so we can make it just call getPropertyValue
and have generic checks (e.g. for 'initial') in that function.
This patch makes us match Firefox in behaviour.
BUG=612363
Committed: https://crrev.com/5cf5e5234ad01ef8e22f10f25f674232a2ae7d2e
Cr-Commit-Position: refs/heads/master@{#394409}
Patch Set 1 #
Total comments: 1
Dependent Patchsets: Messages
Total messages: 24 (12 generated)
|