Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

CSS Lint and large CSS files

231 views
Skip to first unread message

seanoshea

unread,
Jun 27, 2011, 12:36:04 PM6/27/11
to CSS Lint
Hi all,

For better or for worse, I'm dealing with quite a large input css file
(~3500 lines). When I run it through the CLI, I get:

seanosheas-macbook-pro-2:styles seanoshea$ csslint eyefi.css

csslint: There are 1 errors and 0 warnings in /Users/seanoshea/eyefi/
svn/manager/ti/Eye-Fi Center/Resources/styles/eyefi.css.

eyefi.css:
1: error at line undefined, col undefined
Fatal error, cannot continue: Cannot read property 'src' of undefined
undefined
seanosheas-macbook-pro-2:styles seanoshea$ csslint --version
v0.3.2
seanosheas-macbook-pro-2:styles seanoshea$

With a smaller input css file (~800 lines), csslint works fine.

As this is really my first time using node and csslint, I thought I
should check here before filing any bugs on the github tracker. Is
anyone else here having the same issue as me?

Sean

Nicholas Zakas

unread,
Jun 27, 2011, 12:52:15 PM6/27/11
to css-...@googlegroups.com
Hi Sean,

It's unlikely that the size of the file is the issue. It's more likely that there's some pattern in the file that's causing CSS Lint to break. Unfortunately, the only way to figure out such an issue is to systematically remove parts of the CSS file until the error goes away.

-N

Sean O Shea

unread,
Jun 27, 2011, 1:08:02 PM6/27/11
to css-...@googlegroups.com
Thanks for the pointer.

It appears this could be related to using @font-face. I narrowed down
the issue to the following CSS declaration in my css file:

@font-face {
src:url("../fonts/UniversBold.otf");
font-family:Univers;
advancedAntiAliasing: true;
}

If I take this rule out of the source css file, I can run csslint
without any issues. Checked to see whether it was something specific
to my css, but the example taken from
https://developer.mozilla.org/en/css/@font-face causes similar issues.

Sean

On Mon, Jun 27, 2011 at 9:52 AM, Nicholas Zakas
<nich...@nczconsulting.com> wrote:
> Hi Sean,
>
> It's unlikely that the size of the file is the issue. It's more likely that
> there's some pattern in the file that's causing CSS Lint to break.
> Unfortunately, the only way to figure out such an issue is to systematically
> remove parts of the CSS file until the error goes away.
>
> -N
>
>

Nicholas Zakas

unread,
Jun 27, 2011, 1:28:58 PM6/27/11
to css-...@googlegroups.com
Interesting. Can you please file an issue at http://github.com/stubbornella/csslint/issues? I can take a look.

-N

Sean O Shea

unread,
Jun 27, 2011, 1:37:57 PM6/27/11
to css-...@googlegroups.com
Done! https://github.com/stubbornella/csslint/issues/90

Thanks for the great tool. Looking forward to cleaning up my CSS!

On Mon, Jun 27, 2011 at 10:28 AM, Nicholas Zakas
<nich...@nczconsulting.com> wrote:
> Interesting. Can you please file an issue at
> http://github.com/stubbornella/csslint/issues? I can take a look.
>
> -N
>

Reply all
Reply to author
Forward
0 new messages