Ticket #2528076 (closed defect)

Reporter


Jan Záruba
Opened: 12/10/10
Last modified: 12/12/12
Status: closed
Type: defect
Resolution: wontfix

Owner


Adam Moore
Target Release:
Priority:
Summary: CSS: Backslash in fromt of colon removed
Description:

When there is a backslash-semicolon (:) escape sequence in identifier in CSS rule selector, the backslash is removed.
e.g.
fck:rfe-audio
becomes
fck:rfe-audio
That completely changes meaning of the selector.
Originally it selects element named <fck:rfe-audio>. After compression it selects element <fck> which is of pseudo-class (or pseudo-element) "rfe-audio" (which is not defined). Compressed CSS is
considered invalid by W3C validator though before compression it was perfectly valid. And what's worse - the efect in browser is completelly different (FF, CH, OP, SF) - the selector is not matched
and the CSS rules are not applied.

Besides http://www.w3.org/TR/css3-syntax/#characters states: "Style sheet preprocessors must not remove these backslashes from a style sheet since that would change the style sheet's meaning."

Type: defect Observed in Version: 2.4.2
Component: YUICompressor Severity: S3 (normal)
Assigned To: Adam Moore Target Release:
Location: Priority:
Tags: Relates To:
Browsers: N/A
URL:
Test Information:

command is
%JRE% -jar %JAR% --charset utf8 %%g -o %%g

where %%g is path of file to compile, the complete file is attached

Attachments

Attachment #1: fckAudio.css (download)

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.