Tests also pass if you remove the <link rel="stylesheet" href="styles.css"> line, or if you add only the @media part to the stylesheet.css. Although I agree that moving everything about styles into styles.css is the best choice.
The error message Your Technical Documentation project should use at least one media query. is not helpful though. Is using media queries in the <style> tag invalid code? Why? It seems to work for me, background color changes! As I found online, media queries can not be used within inline styles, but it seems like it can be used in the <style> tag.
If using styles inside of the <style> tag is not allowed, then why I can pass the tests by removing the <link rel="stylesheet" href="styles.css"> line?
Then the tests should not pass if there is no <link rel="stylesheet" href="styles.css"> or if the css file is empty, isn’t it? But if I just remove the <link> part and leave the css file empty, all tests pass! Shouldn’t an error be returned instead?
i didn’t write the tests so i cannot comment on why the test is not strictly enforcing this. As I said, the code either way is not invalid.
but using a stylesheet is good practice and learners are expected by the instructions to learn how to use it.
if you believe this is a bug, please open a github issue to discuss it with the code maintainers.
Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.