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

From: Date: Fri, 10 Feb 2012 00:56:42 +0000
Subject: Bug #19283 [Asn->Csd]: CSS @media rules cause false positives
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8254@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 false positives -Status: Assigned +Status: Closed 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: -Status: Assigned +Status: Closed Fixed in Git: https://github.com/squizlabs/PHP_CodeSniffer/commit/440d99d022314ae187b3a39f2 826b129a6d97806 Thanks again for another great patch. Previous Comments: ------------------------------------------------------------------------ [2012-02-10 00:54:37] squiz -Summary: CSS @media rules cause flase positives +Summary: CSS @media rules cause false positives ------------------------------------------------------------------------ [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 (#8254) next »