question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom property sets invalid syntax in 7.0.15

See original GitHub issue

Latest 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, May 4, 2019

I will revert 7.0.15 until 8.0

1reaction
gosolivscommented, May 4, 2019

Of course. I’ll fix that bug!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found