-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Enable camelCaseSvgKeywords
option for value-keyword-case
#292
Comments
@rohm1 Thanks for the report. But I believe this is not a bug. You can avoid the error by the {
"rules": {
"value-keyword-case": ["lower", {"camelCaseSvgKeywords": true}]
}
} See also this demo. |
@ybiquitous thanks, but this is at least a default config bug. I should not have to configure anything for standard CSS properties and values. |
Make sense. Let's move this into the standard config repo and continue discussing. Ref: stylelint-config-standard/index.js Line 111 in 5aa5dd5
|
camelCaseSvgKeywords
for value-keyword-case
camelCaseSvgKeywords
for value-keyword-case
camelCaseSvgKeywords
option for value-keyword-case
Revisit old issues: |
Just to confirm, are both valid, e.g., |
Not sure, the specs make only mention of the camel case option (https://svgwg.org/svg2-draft/painting.html#TextRenderingProperty). But both Firefox and Chrome seem to accept camel case and lowercase. |
Umm, if we enable a {
color: currentcolor;
/* ^ Expected "currentcolor" to be "currentColor"
*/
} See this demo. What do you think? |
Looks like this is wrong: https://github.com/stylelint/stylelint/blob/main/lib/reference/keywords.js#L265 |
Does the SVG spec support |
The link you provided is To summarize:
|
Umm..., it seems we cannot enable |
I came across this issue, and trying to trace down any upstream issue I found w3c/csswg-drafts#4599 |
What steps are needed to reproduce the bug?
What Stylelint configuration is needed to reproduce the bug?
How did you run Stylelint?
Demo website: https://stylelint.io/demo/#N4Igxg9gJgpiBcIBUACYAdAdugLjmAHjgLQBOMmspAlpgObwoQAOO1AttQF4wAyMdagCNqAG2o4AngG4sAXxAAaEADMxMAHIBDdnESEdzUTAB0YAM7ml4CJjV0EIDJhQp0IQvkrn3jANpYrq7u5lLG4pgkkHbUdMShWpRapFDugSgAuvLW0fYAYhCk7Fo4jgBW5rbWsMxWiM7BIKGS4bQ4vm4goiUwoe6K6SFhMBFRtvbxOIlQyakInd34fSDZckA
Which version of Stylelint or dependencies are you using?
latest
What did you expect to happen?
No problems to be reported
What actually happened?
Error: Expected "optimizeLegibility" to be "optimizelegibility" (value-keyword-case)
Does the bug relate to non-standard syntax?
no
Proposal to fix the bug
Possibly related to stylelint/stylelint#6517
The text was updated successfully, but these errors were encountered: