Bug #19283 [Asn]: CSS @media rules cause false positives

From: Date: Fri, 10 Feb 2012 00:54:37 +0000
Subject: Bug #19283 [Asn]: CSS @media rules cause false positives
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8253@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19283&edit=1 ID: 19283 Updated by: gsherwood@squiz.net Reported By: klaus dot purer at gmail dot com -Summary: CSS @media rules cause flase positives +Summary: CSS @media rules cause false positives Status: Assigned Type: Bug Package: PHP_CodeSniffer Operating System: Ubuntu 11.10 Package Version: SVN PHP Version: 5.3.9 Assigned To: squiz Roadmap Versions: New Comment: -Summary: CSS @media rules cause flase positives +Summary: CSS @media rules cause false positives Previous Comments: ------------------------------------------------------------------------ [2012-02-10 00:54:23] squiz -Summary: CSS @media rules +Summary: CSS @media rules cause flase positives -Assigned To: +Assigned To: squiz ------------------------------------------------------------------------ [2012-02-10 00:08:54] klausi Added #patch bug:19283;patch:phpcs-css-media.patch;revision:1328832534;. ------------------------------------------------------------------------ [2012-02-10 00:08:18] klausi Added #patch bug:19283;patch:phpcs-css-media.patch;revision:1328832498;. ------------------------------------------------------------------------ [2012-02-10 00:07:40] klausi Description: ------------ CSS @media rules can contain nested CSS definitions. 2 sniffs are not prepared for that, patch attached. See also the example CSS test snippet. Test script: --------------- @media screen and (max-device-width: 769px) { header #logo img { max-width: 100%; } } Expected result: ---------------- All CSS sniffs should pass. Actual result: -------------- Squiz_Sniffs_CSS_IndentationSniff and Squiz_Sniffs_CSS_MissingColonSniff report false positives. ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19283&edit=1

« previous php.pear.bugs (#8253) next »