[Webkit-unassigned] [Bug 259419] Better type handling in HTMLImageElement resource selection

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 20 20:00:50 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=259419

Karl Dubost <karlcow at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |karlcow at apple.com

--- Comment #4 from Karl Dubost <karlcow at apple.com> ---
Yes probably a couple of tests would help. 
And after quickly checking on WPT, I didn't find anything obvious testing the type attribute on the source element.

Probably testing:


# unknown string
<picture>
  <source type='unknown_type' srcset="something.png 400w, something2.png 800w">
  <img src="working_image.jpg">
</picture>


# unknown string + a known one.
<picture>
  <source type='unknown_type' srcset="something.png 400w, something2.png 800w">
  <source type='image/jpeg' srcset="something.jpg 400w, something2.jpg 800w">
  <img src="working_image.jpg">
</picture>


# empty string
<picture>
  <source type='' srcset="something.png 400w, something2.png 800w">
  <img src="working_image.jpg">
</picture>

# space string
<picture>
  <source type='' srcset="something.png 400w, something2.png 800w">
  <img src="working_image.jpg">
</picture>


# different type
<picture>
  <source type='image/webp' srcset="something.png 400w, something2.png 800w">
  <img src="working_image.jpg">
</picture>

etc.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230821/592b7e3d/attachment.htm>


More information about the webkit-unassigned mailing list