Bug 231078

Summary: Invalid CSS <image> should be transparent
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=206909

Sam Sneddon [:gsnedders]
Reported 2021-10-01 07:13:15 PDT
Per https://drafts.csswg.org/css-images-4/#invalid-image: > In some cases an image is invalid, such as a <url> pointing to a resource that is not a valid image format or that has failed to load. An invalid image is rendered as a solid-color transparent image with no natural dimensions. However, invalid images can trigger error-handling clauses in some contexts. For example, an invalid image in list-style-image it is treated as none, allowing the list-style-type to render in its place. [CSS2] This is the reason why bug 206909 occurred (we end up rendering the broken image icon over the star), rather than the -webkit-image-set() parsing change itself (which is what that bug reverted).
Attachments
Radar WebKit Bug Importer
Comment 1 2021-10-08 07:14:17 PDT
Simon Fraser (smfr)
Comment 2 2021-10-09 11:12:30 PDT
Dup of bug 203788
Sam Sneddon [:gsnedders]
Comment 3 2021-10-12 02:42:31 PDT
*** This bug has been marked as a duplicate of bug 203788 ***
Note You need to log in before you can comment on or make changes to this bug.