[Webkit-unassigned] [Bug 216170] myElement.style.cssText exposes the order of the CSSPropertyID enum values to the web
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Sep 27 18:31:26 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=216170
--- Comment #5 from Karl Dubost <karlcow at apple.com> ---
Created attachment 462667
--> https://bugs.webkit.org/attachment.cgi?id=462667&action=review
developer tools in Safari, Firefox and Chrome
(note to myself)
all is defined in
https://drafts.csswg.org/css-cascade-5/#propdef-all
> The all property is a shorthand that resets all CSS properties except direction and unicode-bidi. It only accepts the CSS-wide keywords. It does not reset custom properties [css-variables-1].
and
https://drafts.csswg.org/css-cascade-5/#shorthand-property
> Some properties are shorthand properties, meaning that they allow authors to specify the values of several properties with a single property. A shorthand property sets all of its longhand sub-properties, exactly as if expanded in place.
and
>This means that a shorthand property declaration always sets all of its sub-properties, even those that are not explicitly set. Carelessly used, this might result in inadvertently resetting some sub-properties. Carefully used, a shorthand can guarantee a “blank slate” by resetting sub-properties inadvertently cascaded from other sources.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220928/3d7336cc/attachment.htm>
More information about the webkit-unassigned
mailing list