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

[css-tokenize] unfinished business #192

Open
kyle-cyberprairie opened this issue Sep 13, 2024 · 1 comment
Open

[css-tokenize] unfinished business #192

kyle-cyberprairie opened this issue Sep 13, 2024 · 1 comment

Comments

@kyle-cyberprairie
Copy link

kyle-cyberprairie commented Sep 13, 2024

I have tried running the example input but it just outputs like below. Can someone tell me what I'm doing wrong?

$ doiuse --browsers "ie >= 9, > 1%, last 2 versions" style.css
[css-tokenize] unfinished business [
  [ 'root' ],       [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ],
  [ 'string', 39 ], [ 'comment' ]
]

Using node v16.20.2

@craigerm
Copy link

craigerm commented Oct 15, 2024

Same issue for me with node v20.18.

It looks like it's failing for a single quote inside a comment.

Example valid use case:
/* Fallback style when browser doesn't support... */

Minimal reproducible example:

Fails:

/* comment with ' char */
.focused {
  color: blue;
}

Works:

/* comment with 'wrapped' chars */
.focused {
  color: blue;
}

Temp workaround: remove the quote from the comment.

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

2 participants