Broken test: Step 5 of Learn CSS transforms by building a penguin
See original GitHub issueDescribe 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
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:
- Created a year ago
- Comments:16 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 thatclip
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.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.