[wp-trac] [WordPress Trac] #21455: HiDPI (retina) theme custom backgrounds
WordPress Trac
noreply at wordpress.org
Wed Nov 4 21:52:57 UTC 2015
#21455: HiDPI (retina) theme custom backgrounds
-------------------------+-----------------------------
Reporter: nacin | Owner: joemcgill
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+-----------------------------
Changes (by joemcgill):
* keywords: responsive-images =>
* type: task (blessed) => enhancement
* milestone: 4.4 => Future Release
Comment:
Since background images are implemented in CSS instead of through an
`<img>` element, we aren't going to get any benefit from the new
responsive image markup implemented in browsers. That said we're left with
exactly the same issues @Otto42 described three years ago.
However, I would suggest that we look at this from the opposite direction.
We should only load the full size image in the background if the viewport
is large enough to need it. In cases where the viewport is smaller, we
should load one of the smaller intermediate sizes. Still, we'll need to
know the width of the background image in order to do the calculations.
Currently we only return the path in ` get_background_image()`.
At any rate, too late for 4.4 so I'm going to punt for now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21455#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list