mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix(curriculum): make test more permissive in house painting lab (#58122)
This commit is contained in:
parent
f2b025a321
commit
8f3b02a683
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user