Opened 5 years ago
#53815 new defect (bug)
safecss_filter_attr removes styles with min() max() and minmax()
| Reported by: | sagarnasit | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)