Bug 249079 - -webkit-mask-box-image:initial is not the initial value
Summary: -webkit-mask-box-image:initial is not the initial value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Oriol Brufau
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-10 14:47 PST by Oriol Brufau
Modified: 2022-12-11 15:19 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-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>