[wp-trac] [WordPress Trac] #22030: After "clear background-color" in design options, still css is added to html-output

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 28 08:45:21 UTC 2012


#22030: After "clear background-color" in design options, still css is added to
html-output
-----------------------------+--------------------------
 Reporter:  Ov3rfly          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  General
  Version:  3.4.2            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 After you select "clear background-color" in design options, the default
 color still is added as inline css to html-output of frontend.

 Tested with 3.4.2 and Twenty Twelve 1.0 theme

 Steps to reproduce:

 1. Look at default html-output, no inline css for background-color
 2. Design -> Background -> Color, select e.g. color #123456, save
 3. Look at html-output, this is added:

 {{{
 <style type="text/css" id="custom-background-css">
 body.custom-background { background-color: #123456; }
 </style>
 }}}

 4. Design -> Background -> Color -> Click "clear" option, save
 5. Look at html-output, this is added with default value:

 {{{
 <style type="text/css" id="custom-background-css">
 body.custom-background { background-color: #e6e6e6; }
 </style>
 }}}


 Expected behaviour: After "clear" option is used and default value #e6e6e6
 (or only a #) is shown in backend, no inline css should be included in
 html output of frontend.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22030>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list