Skip to content

[beta] Create a Media Query - Instructions and test don't match #13264

@webdevjeffus

Description

@webdevjeffus

Challenge create-a-media-query has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

<style>
  @media (max-height: 800px) {
    p { font-size: 10px }
  }
</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>

In the "Create a Media Query" challenge, the instructions and the test don't match. The instructions say:

Add a media query, so that the p tag has a font-size of 10px when the device's height is smaller than 800px.

Smaller than 800px means 799 or less, so the correct media query should be "max-width: 799px". The test actually passes with "max-width: 800px", which translates into English as 800px or smaller.

Basically, the instructions call for width < 800, but the test checks for width <= 800. Either one is fine, but they need to match each other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions