[wp-trac] [WordPress Trac] #64418: Valid CSS is causing failure in the Additional CSS panel

WordPress Trac noreply at wordpress.org
Fri Jan 9 13:22:19 UTC 2026


#64418: Valid CSS is causing failure in the Additional CSS panel
-------------------------------------------------+-------------------------
 Reporter:  drw158                               |       Owner:  jonsurrell
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  7.0
Component:  Customize                            |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:  css
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by sonaliprajapati):

 **Create a CSS file:/assets/css/custom.css**


 Enqueue it:

 add_action('wp_enqueue_scripts', function () {
     wp_enqueue_style(
         'custom-css',
         get_stylesheet_directory_uri() . '/assets/css/custom.css',
         [],
         '1.0'
     );
 });


 Put your CSS inside custom.css:

 @property --animate {
   syntax: "<custom-ident>";
   inherits: true;
   initial-value: false;
 }

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


More information about the wp-trac mailing list