Comments (2)
Hi there, thank you for raising this issue.
I checked out a copy of jQuery UI 1.8.13 (complete with the empty comment CSS hack). When running Parker against jquery.ui.datepicker.css, I was unable to recreate the problem. Here's Parker's output when run against the stylesheet:
PARKER-JS
Total Stylesheets: 1
Total Stylesheet Size: 4047
Total Rules: 42
Total Selectors: 47
Total Identifiers: 111
Total Declarations: 91
Selectors Per Rule: 1.119047619047619
Identifiers Per Selector: 2.3617021276595747
Specificity Per Selector: 20.170212765957448
Top Selector Specificity: 31
Top Selector Specificity Selector: .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current
Total Unique Colors: 0
Unique Colors:
Total Important Keywords: 0
Total Media Queries: 0
Media Queries:
Is the same output reported for you?
I'd like to continue looking into it if I can; could you confirm which version of Node.JS and Parker you have installed?
from parker.
I experimented with this some more. Using ONLY the jquery.ui.datepicker.css
file I get the same results as you posted above. If I remove the /**/
from display/**/: block;
and rerun parker then my "Total Declarations" line goes up to 92.
In my CSS the datepicker stuff is splat in the middle of a huge file, so it was very obvious something wasn't right. So, more testing! I moved a chunk of CSS from the datepicker.css file to a spot BELOW the /**/
line and it looks like it ignores anything after another comment is encountered. Try the following two samples:
/* this comment is above the hacky junk and won't be a problem */
.test-selector {
display/**/: block;
}
.test-selector2 {
font-weight: bold;
}
.test-selector {
display/**/: block;
}
/* this comment should cause a problem because it follows that hacky junk */
.test-selector2 {
font-weight: bold;
}
This is on Win8.1, node 0.10.31, and parker 0.0.8.
from parker.
Related Issues (20)
- IDs falsely reported in attribute selectors HOT 4
- Some files are silently ignored when processing ~250 or more stylesheets HOT 1
- Module fails on Ubuntu HOT 2
- Parker fails on all css: No valid stylesheet data supplied HOT 5
- parker -n [filepath] is returning as if it's -h
- Include ability to make assertions HOT 1
- Recursively parse folder HOT 7
- Feature: Add z-index values to report HOT 6
- Cannot install parker HOT 2
- zsh: command not found HOT 6
- curl usage in docs HOT 1
- How should we use these metrics? HOT 2
- Declarations per rule
- Ordered list of selectors HOT 2
- Parse external file from project dependency HOT 1
- Changelog
- Newer versions of node warns about graceful-fs is out of date.
- Future of parker? HOT 2
- ReferenceError: primordials is not defined HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parker.