Tell us what’s happening:
I have already submitted an issue on github as I think it is a bug, just thought if anyone here can spot anything wrong here with my solution, or can make this problem pass, if so, I can close the issue…
Your code so far
<style type='text/sass'>
$x: 1;
@while $x < 11 {
.text-#{$x} { font-size: #{5*$x}px;}
$x: $x + 1;
}
</style>
<p class="text-1">Hello</p>
<p class="text-2">Hello</p>
<p class="text-3">Hello</p>
<p class="text-4">Hello</p>
<p class="text-5">Hello</p>
<p class="text-6">Hello</p>
<p class="text-7">Hello</p>
<p class="text-8">Hello</p>
<p class="text-9">Hello</p>
<p class="text-10">Hello</p>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while/
5 Likes
I think this exercise in general is buggy. I’ve tried it your way as well as
.text-#{$x} { font-size: 5px * $x;}
and neither work. Even though if I look at it, either way, in the Chrome elements inspector, it shows it exactly as it is looking for.
This I guess is a browser issue, because it passes successfully in Firefox but not in Chrome.
Try a different browser, and it should work.
Hope this helps
1 Like
Now both this
.text-#{$x} { font-size: 5px * $x;}
and this work in Firefox at least
.text-#{$x} { font-size: 5 * $x;}
@Dereje1 , this issue has been solved as I have tried the original solution today (in Chrome Version 71.0.3578.98) and it passes.
@BvdLind , see my edited post
@TomerPacific It hasn’t been solved yet. It still doesn’t work on chrome. Firefox did work for me though.
…still buggy, pass this test on Firefox.
It’s working on Mozila.Thanks
Doesn’t work for me too on chrome.
ILM
August 13, 2019, 7:21am
11
what tests are you missing? if it is only one or two it may be that you have a min-size set as browser setting