Media Query Not working with Microsoft Edge (Chromium)

Tell us what’s happening:
Describe your issue in detail here.
When running the below code failed on all tests in Microsoft Edge (Chromium) for Mac and passed with the same code in Google Chrome.

  **Your code so far**

<style>
p {
  font-size: 20px;
}

/* Only change code below this line */
@media (max-height: 800px) {
  p {
    font-size: 10px;
  }
}
/* Only change code above this line */
</style>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus quis tempus massa. Aenean erat nisl, gravida vel vestibulum cursus, interdum sit amet lectus. Sed sit amet quam nibh. Suspendisse quis tincidunt nulla. In hac habitasse platea dictumst. Ut sit amet pretium nisl. Vivamus vel mi sem. Aenean sit amet consectetur sem. Suspendisse pretium, purus et gravida consequat, nunc ligula ultricies diam, at aliquet velit libero a dui.</p>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36 Edg/91.0.864.41

Challenge: Create a Media Query

Link to the challenge:

Welcome there,

Thank you, for bringing this up. This looks related to: I think we broke something with Safari...again. · Issue #42354 · freeCodeCamp/freeCodeCamp · GitHub

Oddly, I do not pass in Google Chrome… :face_with_raised_eyebrow:

I just fell for the old browser extension breaking the tests trick. Do you have a browser extension enabled on Edge?

I did have uBlock Origin enabled upon disabling it still fails test 2. If it helps my version is Microsoft Edge Version 91.0.864.41 (Official build) (x86_64) but it is likely an Edge issue.

I can pass this challenge with that exact version of Edge. Perhaps there is still a cached issue on your page, after removing the extension. Try refreshing the page.

Must have been a cache issue; My apologies!!

No worries. Glad you got through, anyway.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.