[wp-trac] [WordPress Trac] #56353: Allow assigning CSS variables in safecss_filter_attr

WordPress Trac noreply at wordpress.org
Tue Aug 9 11:24:37 UTC 2022


#56353: Allow assigning CSS variables in safecss_filter_attr
--------------------------+-----------------------------
 Reporter:  aristath      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `safecss_filter_attr` allows using custom CSS variables like `color:
 var(--color);`. However, it does not currently allow assigning values to
 CSS variables (like `--color: #F00`) - which is something we do a lot in
 global-styles and Gutenberg.
 We should allow assigning values to CSS variables so we can use this
 function consistently in Global Styles and the future Style Engine (WIP in
 Gutenberg)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56353>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list