fix(challenge): use offsetHeight to get height value (#36995)

This commit is contained in:
lasjorg
2019-10-28 00:02:53 +01:00
committed by Randell Dawson
parent b9ba5c02a8
commit 316d56ba11

View File

@ -29,7 +29,7 @@ Add a <code>height</code> property to the <code>h4</code> tag and set it to 25px
```yml
tests:
- text: Your code should change the <code>h4</code> <code>height</code> property to a value of 25 pixels.
testString: assert($('h4').css('height') === '25px' && /h4{\S*height:25px(;\S*}|})/.test($('style').text().replace(/\s/g ,'')));
testString: assert(document.querySelector('h4').offsetHeight === 25 && /h4{\S*height:25px(;\S*}|})/.test($('style').text().replace(/\s/g ,'')));
```