Custom property sets invalid syntax in 7.0.15
See original GitHub issueLatest release fixed custom properties, but broke unofficial custom property sets support.
111 tests in stylelint related to custom property sets are broken because of syntax error for constructions like this:
:root { --custom-property-set: {} }
:root {
--x { color: pink; } ;
--y { color: red; };
}
Also, I believe, postcss-apply is now broken as well. It has more than 400 000 dowloads per week. Though @apply
was rejected, and it’ll never be a standard syntax.
Technically, PostCSS not doing anything wrong. I’m happy to remove broken tests from stylelint, as it’s non-standard syntax.
Just wanted to bring your attention to this situation.
Related stylelint issue: https://github.com/stylelint/stylelint/issues/4067
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Syntax Error for custom property sets in no-descending ...
Describe the issue. Is it a bug or a feature request (new rule, new option, etc.)? When using postcss-apply in combination with no-descending- ......
Read more >IV89022: CUSTOM PROPERTIES SAVED TO ADVANCED ...
Custom properties saved to Advanced Searches (AQL) with invalid syntax are unable to deleted. After selecting to delete the Custom Property an error...
Read more >Invalid Syntax in Python: Common Reasons for SyntaxError
The interpreter will attempt to show you where that error occurred. When you're learning Python for the first time, it can be frustrating...
Read more >New features - Manual - PHP
It returns its first operand if it exists and is not null ; otherwise it ... and provide the ability to throw custom...
Read more >var() - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
The custom property's fallback value, which is used in case the custom property is invalid in the used context. This value may contain...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will revert 7.0.15 until 8.0
Of course. I’ll fix that bug!