Bug 231078
Summary: | Invalid CSS <image> should be transparent | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sam Sneddon [:gsnedders] <gsnedders> |
Component: | Layout and Rendering | Assignee: | 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]
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/84026868>
Simon Fraser (smfr)
Dup of bug 203788
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 203788 ***