mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): check individual properties instead of shorthand (#51272)
This commit is contained in:
parent
8b014b70cf
commit
d0480e825a
@ -16,7 +16,13 @@ Set the `animation` property of the `.cabin` rule to `cabins 10s linear infinite
|
||||
Your `.cabin` selector should have an `animation` property set to `cabins 10s linear infinite`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.cabin')?.animation === '10s linear 0s infinite normal none running cabins');
|
||||
const cabinElementStyles = new __helpers.CSSHelp(document).getStyle('.cabin');
|
||||
assert(
|
||||
cabinElementStyles?.animationName === "cabins" &&
|
||||
cabinElementStyles?.animationDuration === "10s" &&
|
||||
cabinElementStyles?.animationTimingFunction === "linear" &&
|
||||
cabinElementStyles?.animationIterationCount === "infinite"
|
||||
);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user