Bug 261667 - [CSS Masking] Fragment bitmap images are not working as 'mask-image'
Summary: [CSS Masking] Fragment bitmap images are not working as 'mask-image'
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-09-17 22:37 PDT by Said Abou-Hallawa
Modified: 2023-09-24 22:38 PDT (History)
4 users (show)

See Also:


Attachments
red-100x100.png (296 bytes, image/png)
2023-09-17 22:37 PDT, Said Abou-Hallawa
no flags Details
test case (864 bytes, text/html)
2023-09-17 22:40 PDT, Said Abou-Hallawa
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Said Abou-Hallawa 2023-09-17 22:37:53 PDT
Created attachment 467734 [details]
red-100x100.png

Open the attached test case.

Expected: Only half of the rectangles should be displayed.
Result: The whole rectangles are displayed.

https://developer.mozilla.org/en-US/docs/Web/CSS/image/image#image_fragments suggests a bitmap image fragment implementation. When specified as mask-image, an image fragment should only be used to mask the target element.
Comment 1 Said Abou-Hallawa 2023-09-17 22:40:13 PDT
Created attachment 467735 [details]
test case
Comment 2 Radar WebKit Bug Importer 2023-09-24 22:38:14 PDT
<rdar://problem/115975501>