Skip to content
Browse files

! Fixed calc() recursive pattern: it was trying to match against the …

…whole pattern, instead of the second group of brackets. Also simplified the rest of the pattern. (Class-CSS.php)
  • Loading branch information...
Nao committed May 13, 2019
1 parent 294d044 commit a51158f3ad6e51454abb77c0debd65080d964d53
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/app/Class-CSS.php
@@ -1685,8 +1685,8 @@ function process(&$css)
'transition(?:-[a-z-]+)?:([^\n;]*)', // Animated transitions (we need to fix 'transform' values, if any.)
'display:\h*(flex|inline-flex)\b', // Final flexbox model declarations
'\b(min|max)-resolution:\h*([\d.]+)(dppx|dpi)', // Useful for responsive design
'\brect\h*\(([^)]+)\)', // rect() function, needs commas except in IE 6/7
'\bcalc\h*\(((?>[^(]|\((?!\))|(?R))+?)\)', // calc() function
'\brect\h*\(([^)]+)\)', // rect() function, needs commas except in IE 6/7. Useless..?
'\bcalc\h*(\((?>[^()]|(?2))*\))', // calc() function, recursive
foreach ($values as $val)

0 comments on commit a51158f

Please sign in to comment.
You can’t perform that action at this time.