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.

The unit of the variable for @for is inconsistent between implementations

See original GitHub issue

With this input

test {
    @for $i from 12px to 13px {
        content: unit($i);
    }
}

I get the following output on ruby-sass 3.7.4 and libsass 3.5.5 (these are the versions available on https://www.sassmeister.com/):

test {
  content: "px";
}

But I get this output on dart-sass 1.26.10 and 1.26.11

test {
  content: "";
}

IMO, the behavior of ruby-sass and libsass is more logical, as the values for from and to are handled as unit numbers (including coercing compatible units).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
babakfpcommented, Oct 27, 2020

Just curious, why you used px (for loop parameters)?

0reactions
nex3commented, Jan 20, 2021

Thanks for all your help with this, @stof!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to let compiler catch inconsistent type of global variables ...
Here the global variable e is mistakenly declared as float and int in two source files. How to let the linker raise error...
Read more >
ACG6309 Ch 8 Flashcards - Quizlet
Consider the following statements about absorption costing and variable costing: I. Variable costing is consistent with contribution reporting and cost-volume- ...
Read more >
BB. Definitions - SEI External Wiki Home
An expression constructed from the variables of a function that must be true for a thread to be allowed to continue execution. conforming...
Read more >
Confusing Data Validation Rules Explained - Lex Jansen
Metadata validation rules look for issues with the define.xml. These can be issues with the XML code, incorrect implementation of define.xml, or inconsistencies...
Read more >
Inconsistent value for standard unit. Please switch to warning.
Hi,. SD0007 (Inconsistent value for standard unit) is currently flagged as an Error by the validator. However, there are legitimate cases where there...
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