Bug 249079

Summary: -webkit-mask-box-image:initial is not the initial value
Product: WebKit Reporter: Oriol Brufau <obrufau>
Component: CSSAssignee: Oriol Brufau <obrufau>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=248346

Description Oriol Brufau 2022-12-10 14:47:04 PST
-webkit-mask-box-image is stored in StyleRareNonInheritedData::maskBoxImage, which is initialized to:

    NinePieceImage(NinePieceImage::Type::Mask)

However, -webkit-mask-box-image:initial sets it to

    NinePieceImage()

This implies that with -webkit-mask-box-image:initial,

 - fill is false instead of true.
 - imageSlices contains Length(100,LengthType::Percent) instead of Length(0,LengthType::Fixed).
 - borderSlices contains Length(1,LengthType::Relative) instead of Length(0,LengthType::Auto).
Comment 1 Oriol Brufau 2022-12-11 09:21:59 PST
Pull request: https://github.com/WebKit/WebKit/pull/7452
Comment 2 EWS 2022-12-11 15:18:10 PST
Committed 257707@main (20eb361ea099): <https://commits.webkit.org/257707@main>

Reviewed commits have been landed. Closing PR #7452 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-12-11 15:19:16 PST
<rdar://problem/103232454>