Failed:42. Your windows should be placed below your #roof and at least higher than one third of your #door’s height.
My windows are small because i dont understand, ive been messing with various ratios and i definitely meet the minimum 1/3 requirement for this… someone please help ive bene stuck for two days
Not really sure why, but the test expects the windows to also have a bottom property. If you set that on both windows with the same value as the top it passes the tests.
so i had figured it was something like that and tried to put a top and bottom, and its still failing me… This is the only step i need too.. Anymore tips perhaps?
it doesn’t expect a bottom property, the tests use getComputedStyle, all for topbottomleftright are part of the computed style of the element indipendently by what is given as css properties. The issue here is a different one
do not use relative units. Notice that if you resive the preview to be shorter the house changes size, you don’t know the size of the viewport when the tests are run, you should do everything in px
I’m still not clear on how max-height: 100vh is breaking this test. The numbers produced by the test are the same with and without it, but it fails with it?
All I know is, I just added bottom: 150px to both windows and it made the test pass. But so does removing max-height.
Anyway, as I said in the issue, this seems like the wrong way to measure the relative position of elements.