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

@-moz-document crashes csso #137

Closed
drewwells opened this issue Aug 23, 2013 · 3 comments
Closed

@-moz-document crashes csso #137

drewwells opened this issue Aug 23, 2013 · 3 comments

Comments

@drewwells
Copy link

Rules like this cause csso to fail completely

@-moz-document url-prefix() {
    span
    {
        padding:12px 10px 12px 10px;
    }
}
@afelix
Copy link
Contributor

afelix commented Aug 24, 2013

What do you mean by "fail"?

@drewwells
Copy link
Author

Sorry more to the story, this is the actual code causing the issue. It is invalid CSS.

.live-chat.help .main {
  @-moz-document url-prefix() {
    span {
      padding: 12px 10px 12px 10px;
    }
 }

This is the error thrown on http:https://css.github.io/csso/csso.html

Please check the validity of the CSS block starting from the line #1 csso.web.js:427
throwError csso.web.js:427
checkStylesheet csso.web.js:1932
CSSPRules.stylesheet csso.web.js:393
_getAST csso.web.js:439
getCSSPAST csso.web.js:2297
srcToCSSP csso.web.js:2300
document.getElementById.onclick csso.html:36

Uncaught ReferenceError: process is not defined csso.web.js:428
throwError csso.web.js:428
checkStylesheet csso.web.js:1932
CSSPRules.stylesheet csso.web.js:393
_getAST csso.web.js:439
getCSSPAST csso.web.js:2297
srcToCSSP csso.web.js:2300
document.getElementById.onclick

@ben-eb
Copy link

ben-eb commented Feb 2, 2015

@-moz-document url-prefix() {
    .live-chat.help .main span {
        padding: 12px 10px 12px 10px;
    }
 }

=>

@-moz-document url-prefix(){.live-chat.help .main span{padding:12px 10px}}

I don't think it's CSSO's job to rectify invalid input.

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

No branches or pull requests

4 participants