fix(curriculum): make test more permissive in house painting lab (#58122)

This commit is contained in:
Dario-DC 2025-01-14 22:53:21 +01:00 committed by GitHub
parent f2b025a321
commit 8f3b02a683
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -292,7 +292,7 @@ Your `#chimney` should have a `top` value that puts it at the top of your `#hous
```js
const chimney = getComputedStyle(document.querySelector("#chimney"));
assert.equal(Number(chimney?.getPropertyValue("top").replace("px", "")), - Number(chimney?.getPropertyValue("height").replace("px", "")));
assert.approximately(parseFloat(chimney?.getPropertyValue("top")), - parseFloat(chimney?.getPropertyValue("height")), 2);
```
Your `#chimney` should have a `z-index` that puts it behind the house.