Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Cannot Parse *.scss Files With Classnames of "filter" or "from" #12

Open
pmaher opened this issue Dec 9, 2015 · 2 comments
Open

Cannot Parse *.scss Files With Classnames of "filter" or "from" #12

pmaher opened this issue Dec 9, 2015 · 2 comments

Comments

@pmaher
Copy link

pmaher commented Dec 9, 2015

I have a simple .scss file with the following rule:
div .filter { color: red; }
Note the class name is "filter". When trying to parse this I get the following error:

Dec 09, 2015 12:45:43 AM com.vaadin.sass.internal.handler.SCSSErrorHandler log
SEVERE: encountered "filter". Was expecting one of: "-" "and" "or" "not" "#{" "through" "in"
org.w3c.css.sac.CSSParseException: encountered "filter". Was expecting one of: "-" "and" "or" "not" "#{" "through" "in"
at com.vaadin.sass.internal.parser.Parser.reportError(Parser.java:419)
at com.vaadin.sass.internal.parser.Parser.styleRule(Parser.java:2203)
at com.vaadin.sass.internal.parser.Parser.topLevelDeclaration(Parser.java:591)
at com.vaadin.sass.internal.parser.Parser.parserUnit(Parser.java:487)

A similar exception occurs with the following css rule using classname = "from"

div .from { color: red; }

@lipodido
Copy link

Hello,

Did anyone find a solution for this issue.

Regards

@sirbris
Copy link

sirbris commented Mar 23, 2017

I'm also still facing this issue... workaround like suggested here: #117

  $agentFilter: "drop-shadow(0px 3px 8px #ccc)";
  filter: #{$agentFilter};
  -webkit-filter: #{$agentFilter};

but it won't work like that if I want to replace the color #ccc with another scss-variable e.g.

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

No branches or pull requests

3 participants