[wp-trac] [WordPress Trac] #55966: safecss_filter_attr() returns empty if containing min()

WordPress Trac noreply at wordpress.org
Thu Sep 8 13:24:26 UTC 2022


#55966: safecss_filter_attr() returns empty if containing min()
--------------------------------------------+-----------------------------
 Reporter:  uxl                             |       Owner:  SergeyBiryukov
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:  6.1
Component:  Formatting                      |     Version:  6.0
 Severity:  major                           |  Resolution:  fixed
 Keywords:  has-patch early has-unit-tests  |     Focuses:  css
--------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"54100" 54100]:
 {{{
 #!CommitTicketReference repository="" revision="54100"
 KSES: Allow `min()`, `max()`, `minmax()`, and `clamp()` values to be used
 in inline CSS.

 Additionally, this commit updates `safecss_filter_attr()` to add support
 for nested `var()` functions, so that a fallback value can be another CSS
 variable.

 Follow-up to [50923].

 Props johnregan3, noisysocks, cbravobernal, uxl, isabel_brison,
 andrewserong, ramonopoly, joyously, bernhard-reiter, peterwilsoncc.
 Fixes #55966.
 }}}

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


More information about the wp-trac mailing list