[wp-trac] [WordPress Trac] #35108: Responsive images blurry - srcset attribute doesn't include full size version
WordPress Trac
noreply at wordpress.org
Tue Dec 15 21:46:28 UTC 2015
#35108: Responsive images blurry - srcset attribute doesn't include full size
version
-----------------------------+-----------------------------
Reporter: nicasi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 4.4
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
It seems the_post_thumbnail() function doesn't produce the correct code
for responsive images.
Steps to reproduce the problem:
- Set an image wider than 1024px as a featured image on a post (in a theme
supporting this feature)
- Use the_post_thumbnail() somewhere in a theme file and look at the
output.
Expected: srcset of img tag should include full size version.
Instead: srcset doenst include full size version, widest version included
is 1024px version thus making rendering of viewport wide images on higher
resolution devices (wider than 1024 physical pixels) blurry.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35108>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list