fix(curriculum): use CSSHelper for grid-template-columns (#43982)

This commit is contained in:
Kolja Markwardt
2021-11-04 09:24:18 +01:00
committed by GitHub
parent 039809d961
commit a961b2c032

View File

@ -29,11 +29,7 @@ Give the grid container three columns that are each `100px` wide.
`container` class should have a `grid-template-columns` property with three units of `100px`.
```js
assert(
code.match(
/.container\s*?{[\s\S]*grid-template-columns\s*?:\s*?100px\s*?100px\s*?100px\s*?;[\s\S]*}/gi
)
);
assert(new __helpers.CSSHelp(document).getStyle('.container')?.gridTemplateColumns === '100px 100px 100px');
```
# --seed--