[Webkit-unassigned] [Bug 248113] New: Serialization of computed -webkit-border-image doesn't round-trip for border-image-slice

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 18 17:37:43 PST 2022


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

            Bug ID: 248113
           Summary: Serialization of computed -webkit-border-image doesn't
                    round-trip for border-image-slice
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: obrufau at igalia.com

-webkit-border-image automatically adds 'fill' to border-image-slice, except if the value is omitted.

Then, run this:

var s = document.body.style;
var cs = getComputedStyle(document.body);
s.borderImage = "url()";
cs.webkitBorderImage; // "url(\"\") 100% / 1 / 0 stretch"
s.webkitBorderImage = cs.webkitBorderImage;
cs.webkitBorderImage; // "url(\"\") 100% fill / 1 / 0 stretch"

No round-tripping!

So when serializing the computed -webkit-border-image,
 - If border-image-slice has fill, serialize normally (no change).
 - Else, if border-image-slice is 100%, serialize omitting the slice.
 - Else, serialize as empty string.

-- 
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/20221119/80b654b0/attachment.htm>


More information about the webkit-unassigned mailing list