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

WordPress Trac noreply at wordpress.org
Wed Jul 27 06:21:22 UTC 2022


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

Comment (by isabel_brison):

 Thanks for the patch @johnregan3!

 I'm wondering if we could fix an issue with `var()` while we're at it.
 Currently we don't support adding fallback values to variables, such as
 `var(--my-var, 10px)`, because we're only allowing alphanumeric
 characters, dash and underscore as contents for `var`. It would be good to
 allow at least commas and brackets (because a fallback value can be
 another variable).

 Would this be doable as part of this ticket?

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


More information about the wp-trac mailing list