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.

Confusing `raws` behaviour

See original GitHub issue

Ref: December 23, 2016 10:11 AM

    --layout-around-aligned: {
      -ms-flex-line-pack: distribute;  /* IE10 */
      -ms-align-content: space-around;
      -webkit-align-content: space-around;
      align-content: space-around;
    };

    /*******************************
              Other Layout
    *******************************/

    --layout-block: {
      display: block;
    };

I looked into the AST produced by PostCSS and what ends up happening is that the semicolon from (logically) the first rule is in fact tacked on to the before raw value of the comment node. Because cssnano removes the comment nodes then the semicolon is lost, but I don’t think that the semicolon being part of the comment node is correct.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
aicommented, Apr 15, 2017

Done a1cf3e7

I added rule.raws.ownSemicolon with ";" or "[any spaces];" content.

There is only one problem with current implementation. If we will have comments between } and ;, parser will not consider, that semicolon is part of rule.

But this limit is very rare and I will fix it if @apply because a really standard.

0reactions
zliebersbachcommented, Apr 8, 2017

Thanks, looking forward to it. If you need some testing done, just let me know. 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Behavior Chains – Untangling the Confusion
These are four separate behaviors, linked together, giving the appearance of a single behavior. Why is there confusion? The source of confusion ...
Read more >
Evidence for Robust Effects of Epistemic Emotions - Frontiers
The effect of surprise on exploratory behavior was significantly mediated by curiosity but not by confusion, after correct and incorrect answers ...
Read more >
(Visually) Interpreting the confusion-matrix: | Analytics Vidhya
In machine learning, a confusion matrix is a kind-of confusing table used to understand how well our model predictions perform(especially ...
Read more >
Chapter 2 Predicting Behavior with Classification Models
Usually, it is a good idea to visualize the predictions to have a better understanding of the classifier's behavior. Confusion matrices allow us...
Read more >
Cache::Entry encoding changes in Rails 7 are leading to ...
In Rails 7 the Rails.cache.read("counter") will silently fail and return nil unless raw: true option is set making the behaviour ...
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