Components: -Blink>Animation Blink>CSS Summary: Serialized style has initial for longhands omitted from shorthand (was: CSS Transitions: fails to parse potentially ambiguous shorthand)
This is more general, it affects other shorthands too.
document.body.style.outline = 'red';
document.body.style.outlineWidth
"medium" in Firefox
"initial" in Blink
Chrome, Safari:
- initial
Edge, Firefox:
- all
Browsers agree on the computed value (all, i.e. the longhand's initial value).
https://drafts.csswg.org/css-cascade/#shorthand
When values are omitted from a shorthand form, unless otherwise defined, each “missing” sub-property is assigned its initial value.
where "initial value" links to:
https://drafts.csswg.org/css-cascade/#initial-value
Each property has an initial value, defined in the property’s definition table.
Comment 1 by ericwilligers@chromium.org
, Oct 11 2017Summary: Serialized style has initial for longhands omitted from shorthand (was: CSS Transitions: fails to parse potentially ambiguous shorthand)