Bug 249235 - CSSToStyleMap::mapNinePieceImage doesn't take into account that the CSSBorderImageWidthValue may be omitted.
Summary: CSSToStyleMap::mapNinePieceImage doesn't take into account that the CSSBorder...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-13 09:55 PST by Oriol Brufau
Modified: 2022-12-20 09:56 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oriol Brufau 2022-12-13 09:55:22 PST
```
var s = document.body.style;
var cs = getComputedStyle(document.body);

s.webkitBoxReflect = "left 0px url() 3 / 4% / 5px";
cs.webkitBoxReflect; // "left 0px url(\"\") 3 fill / 4% / 5px stretch"

s.webkitBoxReflect = "left 0px url() 3 // 5px";
cs.webkitBoxReflect; // Actual: "left 0px url(\"\") 3 fill / auto / 0 stretch"
                     // Expected: "left 0px url(\"\") 3 fill / auto / 5px stretch"
```

-webkit-border-image and -webkit-mask-box-image had the same problem before they became shorthands in bug 237487 and bug 249115.
Comment 1 Radar WebKit Bug Importer 2022-12-20 09:56:16 PST
<rdar://problem/103561057>