forked from mirrors/gecko-dev
This is enough to fix the devtools regression and matches what other browsers do in the no-attribute case. Also, I think this change over all makes sense: it doesn't make any sense to display the broken image icon if there's no request, and we already assume in EnsureIntrinsicSizeAndRatio() that we don't paint the icon for those (and make the intrinsic size 0x0). We still show the border, which matches other UAs (note that devtools effectively masks the border away with mask-image). This technically also can change behavior of <object> and <input>, but I think it's better to be consistent, since EnsureIntrinsicSizeAndRatio also doesn't special-case <img> either. Differential Revision: https://phabricator.services.mozilla.com/D11659 --HG-- extra : moz-landing-system : lando
9 lines
119 B
HTML
9 lines
119 B
HTML
<!doctype html>
|
|
<style>
|
|
img {
|
|
display: inline-block;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
</style>
|
|
<img src>
|