Help with Sass, Use @while please

Cant pass the test even though i think my code is correct:

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



// running test
Your .text-1 class should have a font-size of 5px.
Your .text-2 class should have a font-size of 10px.
Your .text-3 class should have a font-size of 15px.
Your .text-4 class should have a font-size of 20px.
Your .text-5 class should have a font-size of 25px.
Your .text-6 class should have a font-size of 30px.
Your .text-7 class should have a font-size of 35px.
Your .text-8 class should have a font-size of 40px.
Your .text-9 class should have a font-size of 45px.
Your .text-10 class should have a font-size of 50px.
// tests completed

link to challenge: https://learn.freecodecamp.org/front-end-libraries/sass/apply-a-style-until-a-condition-is-met-with-whilePreformatted text

Works for me. Maybe trying closing browser or refreshing page and re run the tests.

Tried that… still its showing same error.

Try a different browser.

Now its working in the same browser. Anyway thanks!

can u tell me plz how it works ??

How did you get it to work? I have the same issue… Code seams correct. Is it a bug? :upside_down_face:

Yeah it was a bug back then. might be fixed now

Same issue here, I have tested in Safari, Chrome, Brave (included reload). Code pass ONLY in Firefox, Firefox Developer Edition and Opera. Mac 2017 Mojave