[wp-trac] [WordPress Trac] #21455: HiDPI (retina) theme custom backgrounds

WordPress Trac noreply at wordpress.org
Tue Jan 24 19:09:26 UTC 2017


#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:
-------------------------+-----------------------------

Comment (by westonruter):

 If core is to add support for this, I think a solution could be to add a
 `high-dpi` feature flag to the `custom-background` theme support. For
 example:

 {{{#!php
 <?php
 add_theme_support( 'custom-background', array(
         'default-color' => '#0000',
         'high-dpi' => true,
 ) );
 }}}

 When that is present, core could automatically add `background-size: 50%`
 or however high-dpi background images are indicated. Otherwise, themes can
 do this themselves. Maybe I'm being overly simplistic. In any case, it has
 to be an opt-in thing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21455#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list