The unit of the variable for @for is inconsistent between implementations
See original GitHub issueWith 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:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Just curious, why you used
px
(for loop parameters)?Thanks for all your help with this, @stof!