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

weird error for #decor CSS selector #2140

Open
coadotvn opened this issue Mar 10, 2016 · 3 comments
Open

weird error for #decor CSS selector #2140

coadotvn opened this issue Mar 10, 2016 · 3 comments
Labels

Comments

@coadotvn
Copy link

anyone write css for #decor CSS selector in stylus yet?

#decor
  width 100%
  height 100%

it will return ParseError

   1| #decor
------^
   2|   width 100%
   3|   height 100%
expected "indent", got "||"
@vendethiel
Copy link
Contributor

Seems to be the "or" part?

@kizu kizu added the t: Bug label Mar 10, 2016
@pabli24
Copy link

pabli24 commented Nov 19, 2023

There is also problem with Ids that start with the letter: a,b,c,d,e,f and with "and" at the end

#babeand
	width 100%

Compiles to

#babe& {
  width: 100%;
}

null at the end also gets an error

#bbnull
	width 100%

fix:

\#bbnull
	width 100%

@pabli24
Copy link

pabli24 commented Nov 20, 2023

So the problem is with the IDs that are similar to hex colors
and contain “or” “and” “is” “isnt” “unless” “not” “null” at the end

examples:

#banot #abunless #ffffand #decor #dais #eaisnt #aanull

escape # to fix it

\#decor

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

4 participants