Bug 231078 - Invalid CSS <image> should be transparent
Summary: Invalid CSS <image> should be transparent
Status: RESOLVED DUPLICATE of bug 203788
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-01 07:13 PDT by Sam Sneddon [:gsnedders]
Modified: 2021-10-12 02:43 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***