SASS - Apply style with while loop bug

Tell us what’s happening:
The code is doing what it should, font sizes are correct, but I’m failing conditions regarding font-size. I’ve done research and it seems this could be a browser issue - I’ve checked the font-sizes with inspect and they all seem correct, so once I’m home from work I’ll try on Firefox and report back.

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: Chrome/67.0.3396.99.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-while

Looks like there’s an issue about this on Github already: https://github.com/freeCodeCamp/freeCodeCamp/issues/17896

I just tried it in Firefox and it works. :confused: Sorry, yo.

Unfortunately, just gave it a try on Firefox and no dice. It’ll just have to remain unsolved until it gets fixed.