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

Property values should not be matched by \b #73

Closed
weizhenye opened this issue Aug 14, 2016 · 0 comments · Fixed by #76
Closed

Property values should not be matched by \b #73

weizhenye opened this issue Aug 14, 2016 · 0 comments · Fixed by #76
Labels

Comments

@weizhenye
Copy link
Contributor

See following example:

@keyframes line-scale {
}
#test {
  animation: line-scale;
}

: line-scale; generates:

<span class="meta property-value css">
  <span class="punctuation separator key-value css">:</span>
  <span class="support constant property-value css">line</span>
  -scale
  <span class="punctuation terminator rule css">;</span>
</span>

For line is a constant property-value and \b regrads - as a word boundary, it goes wrong.
Same issue with constant font-name.
ES5 doesn't support lookbehind assertions, I'm not sure how to solve it.
Maybe property-values should match <ident-token> first and then constant property-value?

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

Successfully merging a pull request may close this issue.

2 participants