Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on counters style sheet #271

Closed
radiocity opened this issue Feb 24, 2016 · 2 comments
Closed

Fails on counters style sheet #271

radiocity opened this issue Feb 24, 2016 · 2 comments
Labels

Comments

@radiocity
Copy link

Style:

li:before{
    content: counters(item, ".") + "."; /* browsers work perfectly but csso*/
    counter-increment: item;
}

Error log:

D:\...\csso\lib\parser\index.js:115
    throw new Error('Please check the validity of the CSS block starting from th
e line #' + currentBlockLN);
    ^

Error: Please check the validity of the CSS block starting from the line #485
    at throwError (D:\...\csso\lib\parser\index.js:115:11)
    at getBlock (D:\...\csso\lib\parser\index.js:523:14)
    at getRuleset (D:\...\csso\lib\parser\index.js:1595:18)
    at getStylesheet (D:\...\csso\lib\parser\index.js:1797:52)
    at Object.CSSPRules.stylesheet (D:\...\csso\lib\parser\index.js:80:65)
    at parse (D:\...\csso\lib\parser\index.js:2108:30)
    at Object.minify (D:\...\csso\lib\index.js:33:15)
    at Transform.stream._transform (D:\...\gulp-csso\index.js:23:34)
    at Transform._read (_stream_transform.js:166:10)
    at Transform._write (_stream_transform.js:154:12)

Honestly, I use csso as a part of gulp-csso wrapper

@lahmatiy
Copy link
Member

Development version has no error in your case, since parser was reworked. It will be available soon.
However, looks like plus between counters(item, ".") and "." is incorrect
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters

@radiocity
Copy link
Author

Sorry, my mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants