Apply a Style Until a Condition is Met with @while the second not work

Tell us what’s happening:

Your code so far


<style type='text/sass'>
  
  $x: 1;
@while $x < 11 {
  .text-#{$x} { font-size: 5px * $x;}
  $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/67.0.3396.99 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/

What seems to be the problem?

Your code is working by the way.

"Your .text-1 class should have a font-size of 5px. " can’t pass

Did you figure it out? I am having the same issue - the code is correct (in my view) and I cannot complete the challenge.

I think the tests of this challenge are not working well.

I have the same issue. Not sure what to do other than skip it and not get my green check mark.

$x: 1;
@while $x <= 10 {
.text-#{$x}
{
font-size: 5px * $x;
}
$x: $x + 1;
}

This did the trick for me. If it did not pass after this code, you just have to refresh the page and try this code again, i had the problem too and once refreshed i got it.!