[Webkit-unassigned] [Bug 247810] New: border shorthand serialization doesn't round-trip
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 11 08:50:47 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=247810
Bug ID: 247810
Summary: border shorthand serialization doesn't round-trip
Product: WebKit
Version: Other
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: emilio at crisal.io
CC: ntim at apple.com, obrufau at igalia.com,
simon.fraser at apple.com
document.body.style.border = "1px solid";
document.body.style.borderImageSlice = "99%"; // Something non-initial
document.body.style.border // Should be "", on WebKit is "1px solid"
Per spec it should be the empty string.
https://drafts.csswg.org/cssom/#serialize-a-css-value:
> If there is no such shorthand or shorthand cannot exactly represent the values of all the properties in list, return the empty string.
The list comes from https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-getpropertyvalue which has:
> For each longhand property longhand that property maps to, in canonical order [...]
And border maps to the border-image properties.
--
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/20221111/50853182/attachment.htm>
More information about the webkit-unassigned
mailing list