question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Broken test: Step 5 of Learn CSS transforms by building a penguin

See original GitHub issue

Describe the Issue

Instruction: Remove both the horizontal and vertical scrollbars, and prevent programmatic scrolling, using only one property. Hint: You should give body and overflow of clip. I typed in overflow: clip; to the list of properties: values; within the body selector. Even the hint is giving me the same answer, but the code will not pass. I tried different browsers, checked for extensions and updates, but so far nothing has fixed this.

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-css-transforms-by-building-a-penguin/step-5

Your code

body { background-color: linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222)); margin: 0; padding: 0; width: 100%; height: 100vh; overflow: clip; }

Expected behavior

Since I typed overflow: clip; I expected the overflow to be clipped with the rest of the content hidden, and scrolling should be forbidden. According to the hint that comes up and the forum post about this exact issue, I’ve entered the correct code. However, the test keeps failing.

Screenshots

No response

System

  • Device: iPad Pro
  • OS: iOS 15.6.1
  • Browser: Safari, Chrome, Firefox
  • Version: iPadOS 15.6.1

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
moT01commented, Sep 23, 2022

Thanks @Gerschuk

Yea, I think we should definitely change this lesson then - the overflow: hidden suggestion I made on the PR might be the better way to go for this particular step. I believe we use that clip property somewhere else in the curriculum, as I mentioned on the PR - we should maybe find where it is and see if we want to change that one (those ones?), as well.

1reaction
Gerschukcommented, Sep 23, 2022

Hi everyone. The clip property in css is deprecated. https://developer.mozilla.org/en-US/docs/Web/CSS/clip I think this step needing change to use clip-path property. Sorry for my english i’m work in it. Regards.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn CSS Transforms by Building a Penguin - Step 5
Hey! if i try to run your code, all of the tests seem to pass for me. Try resetting the challenge if this...
Read more >
Step 1 | Learn CSS Transforms by Building a Penguin
You will be building a happy Flappy Penguin, and further exploring CSS transforms and animations in the process. Begin with your basic HTML...
Read more >
Using CSS custom properties (variables) - MDN Web Docs
Basic usage · First steps with custom properties · Using the :root pseudo-class · Inheritance of custom properties · Custom property fallback values....
Read more >
FreeCodeCamp/Help - Gitter
margin-top: 5%; width: 300px; height: 300px; } .penguin-top { top: 10%; left: 25%; /* change code below */ background: var(--penguin-skin, black); ...
Read more >
Archives – CSS Weekly
How To Create Advanced Animations With CSS ... Create Complex Transitions With Individual CSS Transform Properties ... 3 Days of Intense Learning.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found