fix(challenge): use offsetHeight to get height value (#36995)
This commit is contained in:
@ -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 ,'')));
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user