Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.
Changing your Avatar.
The only way to currently add or change a forum avatar is through Gravatar.com. The email address used for your Userstyles.org account must be one of the email addresses that is registered to your Gravatar account.

Can't publish update to style

Hi, here is the error
Style code has an error - parse error on value "*" (STAR) on line 7 around "dth-ratio)*(100vw - 1".

What shall I do ?
Thanks

Comments

  • edited November 26 [?]
    Pastedump your code somewhere and link to it. Someone will point out the syntax issue if it's obvious.

    Looks like a calc might be to blame. If so, it might not be quite as obvious. Pretty sure I've seen the USO parser reject perfectly valid syntax before. Extra parentheses did the trick IIRC.
  • edited November 27 [?]
    It is a calc() issue indeed. The thing is that it works perfectly with Stylish. I just can't update my published style with that multiplication sign. More parentheses didn't change anything.
  • Try spaces around the *. The parser is very particular about calc syntax, often without any rhyme or reason. Could be it doesn't like the variable either. Play around with the syntax and see what it'll accept.

    Otherwise, like I said, post the code somewhere so it can be inspected, or the best you'll get is educated guesses.

Sign In or Register to comment.