Bug #19283 [Csd->Opn]: CSS @media rules cause false positives
| From: | klaus dot purer at gmail dot com | Date: | Fri, 10 Feb 2012 15:37:05 +0000 |
| Subject: | Bug #19283 [Csd->Opn]: CSS @media rules cause false positives | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8261@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: klaus.purer@gmail.com
Reported By: klaus dot purer at gmail dot com
Summary: CSS @media rules cause false positives
-Status: Closed
+Status: Open
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: Closed
+Status: Open
Here is a followup patch that addresses some white space issues in the
sniffs. I think a nested rule definition should not be treated as class
definition. Therefore blank lines should be allowed in it.
CSS Test sample:
--------------------
@media screen and (max-device-width: 769px) {
header #logo img {
max-width: 100%;
}
.inner {
min-width: 1281px;
max-width: 1500px;
}
}
Previous Comments:
------------------------------------------------------------------------
[2012-02-10 00:56:42] squiz
-Status: Assigned
+Status: Closed
Fixed in Git:
https://github.com/squizlabs/PHP_CodeSniffer/commit/440d99d022314ae187b3a39f2
826b129a6d97806
Thanks again for another great patch.
------------------------------------------------------------------------
[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;.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=19283
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19283&edit=1