Index: trunk/phase3/includes/libs/CSSJanus.php |
— | — | @@ -113,8 +113,8 @@ |
114 | 114 | $patterns['four_notation_color'] = "/(-color\s*:\s*){$patterns['color']}(\s+){$patterns['color']}(\s+){$patterns['color']}(\s+){$patterns['color']}/i"; |
115 | 115 | // The two regexes below are parenthesized differently then in the original implementation to make the |
116 | 116 | // callback's job more straightforward |
117 | | - $patterns['bg_horizontal_percentage'] = "/(background(?:-position)?\s*:\s*[^%]*?)({$patterns['num']})(%\s*(?:{$patterns['quantity']}|{$patterns['ident']}))/"; |
118 | | - $patterns['bg_horizontal_percentage_x'] = "/(background-position-x\s*:\s*)({$patterns['num']})(%)/"; |
| 117 | + $patterns['bg_horizontal_percentage'] = "/(background(?:-position)?\s*:\s*[^%]*?)(-?{$patterns['num']})(%\s*(?:{$patterns['quantity']}|{$patterns['ident']}))/"; |
| 118 | + $patterns['bg_horizontal_percentage_x'] = "/(background-position-x\s*:\s*)(-?{$patterns['num']})(%)/"; |
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |