My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips
Issue 16: Overspaced four-part rules are flipped without preserving whitespace or not flipped at all
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by [email protected], Jun 29, 2010
Overspaced four-part rules like this one:
    margin: 1px  4em        0    2px;
(that's two spaces, a tab, and four spaces)
get their whitespace collapsed to single spaces when flipped:
    margin: 1px 2px 0 4em;

Overspaced four-part color rules like this one:
    order-color: red  yellow       blue    green;
aren't even flipped at all.

See attachments for testcase, expected output and actual output.

The attached patch fixes both issues: it changes the regex for detecting four-part color rules to allow multiple whitespace characters between colors, and preserves whitespace when swapping both kinds of four-part rules.
testcase.css
335 bytes   View   Download
output.css
331 bytes   View   Download
expected.css
335 bytes   View   Download
fourPartFixes.patch
1.6 KB   View   Download
Sign in to add a comment

Powered by Google Project Hosting