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

Description Sam Sneddon [:gsnedders] 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).
Comment 1 Radar WebKit Bug Importer 2021-10-08 07:14:17 PDT
<rdar://problem/84026868>
Comment 2 Simon Fraser (smfr) 2021-10-09 11:12:30 PDT
Dup of bug 203788
Comment 3 Sam Sneddon [:gsnedders] 2021-10-12 02:42:31 PDT

*** This bug has been marked as a duplicate of bug 203788 ***