fix(curriculum): check individual properties instead of shorthand (#51272)

This commit is contained in:
Lasse Jørgensen 2023-08-23 19:26:55 +02:00 committed by GitHub
parent 8b014b70cf
commit d0480e825a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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--