Ticket #2528113 (closed enhancement)

Reporter


jmperez
Opened: 07/28/11
Last modified: 12/12/12
Status: closed
Type: enhancement
Resolution: wontfix

Owner


Reid Burke
Target Release:
Priority:
Summary: YUI Compressor CSS colors are not lower-cased when represented using 3 chars
Description:

When using YUI Compressor for CSS files, every color declaration is converted to lowercase if it falls in this regex:

p = Pattern.compile("([^"'=s])(s*)#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])");

However, colors specified like this:

  1. footer a{color:#FFF;padding:0 4px;}

are nor lower-cased.

I think that converting them to lower-case would improve compression and consistency.

Type: enhancement Observed in Version: 2.4.6
Component: YUICompressor Severity: S5 (trivial)
Assigned To: Reid Burke Target Release:
Location: Priority:
Tags: color, case Relates To:
Browsers: All
URL:
Test Information:

Change History

Jenny Donnelly

YUI Developer

Posted: 12/12/12
  • resolution changed to wontfix
  • status changed from new to closed

Thank you for your bug report. We are deprecating YUI Compressor in favor of yuglify. Please see our announcement for more information: http://www.yuiblog.com/blog/2012/10/16/state-of-yui-compressor/. We will consider migrating these legacy tickets to GitHub if there are community maintainers willing to step up and own them.