[wp-trac] [WordPress Trac] #63589: Unable to live preview changes to Additional CSS in the Customizer when using a Block Theme

WordPress Trac noreply at wordpress.org
Mon Jul 28 04:43:03 UTC 2025


#63589: Unable to live preview changes to Additional CSS in the Customizer when
using a Block Theme
-------------------------------------+--------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  6.9
Component:  Customize                |     Version:  6.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+--------------------------

Comment (by westonruter):

 @wildworks I think I have a better approach now amended to my existing PR:
 https://github.com/WordPress/wordpress-develop/pull/9000

 Instead of re-introducing the separate `STYLE` tag for the Customizer's
 Custom CSS in the Customizer Preview just for the sake of live preview, in
 my new approach I'm surrounding the Customizer's Custom CSS in CSS
 comments. These are used to locate where the Customizer's Custom CSS
 appears in the overall global styles so that the Customizer Preview JS
 logic can surgically insert the updates into the existing inline
 stylesheet.

 This will ensure that the Custom CSS in the Customizer Preview will look
 exactly the same as the frontend, since the CSS cascade will be the same.

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


More information about the wp-trac mailing list