Skip to content

Error parsing shorthand property background: linear-gradient #35

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

Open
addlistener opened this issue Aug 1, 2024 · 0 comments
Open

Error parsing shorthand property background: linear-gradient #35

addlistener opened this issue Aug 1, 2024 · 0 comments

Comments

@addlistener
Copy link

addlistener commented Aug 1, 2024

My version

css-property-parser@^1.0.6:
  version "1.0.6"
  resolved "https://registry.npmjs.org/css-property-parser/-/css-property-parser-1.0.6.tgz#f0609a9e65f2ab429492d13b1406579e10ba0b3c"
  integrity sha512-exNU7S4ZXcOkQqP8gJRDz5yqj8ZzHU99ZCH3pnKNfivPgoHfVczN6Qh2S9P9SkbSYaEyq/NGhJtlyoxYdePJUQ==
  

The syntax error

Error: 'Error parsing shorthand property background: linear-gradient(109.6deg, rgb(61, 245, 167) 11.2%, rgb(9, 111, 224) 91.1%). Syntax error at line 1 col 17:

1 linear-gradient(109.6deg, rgb(61, 245, 167) 11.2%, rgb(9, 111, 224) 91.1%)
                  ^

Unexpected "1". Instead, I was expecting to see one of the following:

A character matching /[ \t\n\v\f]/ based on:
    wschar →  ● /[ \t\n\v\f]/
    __$ebnf$1 →  ● wschar
    __ →  ● __$ebnf$1
    LinearGradientFunc$subexpression$1$subexpression$1 → LinearGradientFunc$subexpression$1$subexpression$1$string$1 ● __ LinearGradientFunc$subexpression$1$subexpression$1$ebnf$1 ColorStopList
    LinearGradientFunc$subexpression$1 →  ● LinearGradientFunc$subexpression$1$subexpression$1 __ ")"
    LinearGradientFunc →  ● LinearGradientFunc$subexpression$1
    Gradient$subexpression$1$subexpression$1$subexpression$1 →  ● LinearGradientFunc
    Gradient$subexpression$1$subexpression$1 →  ● Gradient$subexpression$1$subexpression$1$subexpression$1
    Gradient$subexpression$1 →  ● Gradient$subexpression$1$subexpression$1
    Gradient →  ● Gradient$subexpression$1
    Image$subexpression$1 →  ● Gradient
    Image →  ● Image$subexpression$1
    BgImage$subexpression$1 →  ● Image
    BgImage →  ● BgImage$subexpression$1
    FinalBgLayer$subexpression$1 →  ● BgImage
    FinalBgLayer →  ● FinalBgLayer$subexpression$1 FinalBgLayer$ebnf$1
    Base → Base$ebnf$1 ● FinalBgLayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant