Ticket #2528142 (closed defect)

Reporter


durhamg
Opened: 02/2/12
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix

Owner


Satyen Desai
Target Release:
Priority:
Summary: 'text-shadow: 0 0 0;' gets incorrectly compressed to 'text-shadow: 0;'
Description:

The YUICompressor compresses the following css:

p { text-shadow: 0 0 0; }

into:

p { text-shadow: 0; }

The compressed version is considered invalid by Firefox, Safari, Chrome, iOS, and most likely Android, so the line is ignored by the browser.

To try it in a browser, use the attached html file. Try it once as is, then change '0 0 0' to '0'.

Type: defect Observed in Version: 2.4.7
Component: YUICompressor Severity: S3 (normal)
Assigned To: Satyen Desai Target Release:
Location: Priority:
Tags: Relates To:
Browsers: Firefox - Latest,Safari 5.x - Mac,Safari 5.x - PC,Chrome,iOS 5
URL:
Test Information:

Attachments

Attachment #1: test.html (download)

Change History

Tubal Martin

Posted: 03/20/12

I've got that fixed in a PHP port I maintain: https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port

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.