Make WordPress Core

Opened 3 years ago

#53815 new defect (bug)

safecss_filter_attr removes styles with min() max() and minmax()

Reported by: sagarnasit's profile sagarnasit Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Formatting Keywords:
Focuses: Cc:

Description

safecss_filter_attr function eliminates the CSS with min(), max() and minmax().

I was trying to use min() with the recently released theme.json layout settings to adjust max-width dynamically based on device width.

"contentSize": "min( calc(100vw - 30px), 620px)",
"wideSize": "min( calc(100vw - 30px), 1200px)",

WordPress 5.8 release adds support for calc() and var() in #46197 and dropping support for IE11, now adding min(), max(), and minmax() would be helpfull for theme developers.

Change History (0)

Note: See TracTickets for help on using tickets.