On step 22, the code overflow: hidden doesn’t seem to work.
At first, I thought “there is only a difference of 2 pixels so I can’t possibly notice”.
However, when I opened inspect element and checked, the dimensions of the canvas div is still the same (502 x 602) and adding/removing the code doesn’t seem to work.
And when I go to the next step (step 23) and check using inspect element, the dimensions change back to (500 x 600).
I tried this on Firefox, chrome and edge. My operating system is windows 10.
Replace the padding property with overflow set to hidden - changing the canvas back to its original dimensions.
Removing the line padding: 1px; fixes the issue I mentioned.
The original code(the one i mentioned above) passed the test and let me continue to the next step. Maybe it doesn’t test to check if padding: 1px; was removed or not…