You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
D3: Updating Height Dynamically - Tests Not Passing #17976
Describe your problem and - if possible - how to reproduce it
Tests are not passing with correct code. Curiously, the "The fifth div should have a height of 25 pixels" test is passing, but none of the others. DOM elements are rendering correctly with appropriate inline style.
Activity
moT01 commentedon Aug 8, 2018
@Ozymandias9000 it passed for me on firefox and chrome with the code in the picture - were you able to get it to pass?
Ozymandias9000 commentedon Aug 9, 2018
Oddly enough, no. I find it very strange that I can get the fifth test to pass, but none of the others, no matter what I do.
moT01 commentedon Aug 9, 2018
yea, im not sure - did you try resetting the code and doing it again? is there any errors in the console? Try another browser maybe
Ozymandias9000 commentedon Aug 9, 2018
Yes to reset, no to errors. If it's a browser problem, that's an issue for people using Chromebooks like myself.
clarkngo commentedon Jan 25, 2019
I got the same scenario as @Ozymandias9000 . Only the fifth test is passing.
Browser Name: Chrome
Browser Version: Version 71.0.3578.98 (Official Build) (64-bit)
Operating System: MacOS Mojave Version 10.14.2
I tried completing the challenge in Firefox and it passed.
Similar users are having problems:
https://www.freecodecamp.org/forum/t/update-the-height-of-an-element-dynamically-data-visualization-with-d3/199226
MomchilKolev commentedon Jun 19, 2019
does not work on Chromium - Version 75.0.3770.100 (Official Build) Arch Linux (64-bit)
works on Firefox 67.0.3
majestic-owl448 commentedon Oct 15, 2019
my browser: Versione 77.0.3865.120 (Build ufficiale) (a 32 bit) on Windows 10 Home v1803
no test passes with callback
d => d + "px"moT01 commentedon Nov 13, 2019
Pretty sure the problem is similiar to the problem on #18045
lasjorg commentedon Nov 14, 2019
Yep looks like yet another zoom bug with Chrome. We can check the inline styles set instead for the test. I will make a PR.