Changeset 174615 in webkit
- Timestamp:
- Oct 10, 2014, 3:38:37 PM (11 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r174510 r174615 1 2014-10-10 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: CSS minification should not strip whitespace around calc +/- binary operators 4 https://bugs.webkit.org/show_bug.cgi?id=137624 5 6 Reviewed by Timothy Hatcher. 7 8 Be careful when stripping whitespace around "+". We want to strip for 9 selectors "a + b" but not for calc expressions "calc(1px + 2px)". 10 11 This is not a perfect solution, but it does a good job. It may still break 12 with more complex calc expressions, like "calc(1px + calc())" but this 13 handles the basics. 14 15 * Scripts/copy-user-interface-resources-dryrun.rb: Added. 16 * Scripts/cssmin.py: 17 (cssminify): 18 1 19 2014-10-09 Joseph Pecoraro <pecoraro@apple.com> 2 20 -
trunk/Source/WebInspectorUI/Scripts/cssmin.py
-
Property svn:executable
set to
*
r151453 r174615 31 31 (r"\n", ""), # delete new lines 32 32 (r"\s+", " "), # change multiple spaces to one space 33 (r"\s?([;:{},+>])\s?", r"\1"), # delete space where it is not needed 33 (r"\s?([;:{},~>])\s?", r"\1"), # delete space where it is not needed 34 (r"\s?([-+])(?:\s(?![0-9(]))", r"\1"), # delete whitespace around + and - when not followed by a number or paren. E.g. strip for selector "a + b" but not "calc(a + b)" which requires spaces. 34 35 (r";}", "}") # change ';}' to '}' because the semicolon is not needed 35 36 ) -
Property svn:executable
set to
Note:
See TracChangeset
for help on using the changeset viewer.