fix(curriculum): css and html test issues (#42045)

* fix: css and html issues

* fix: issues with css test

* fix: allow spaces in solution css

* fix: css tests for use-rgb-to-mix-colors
This commit is contained in:
Seth Falco
2021-05-21 13:18:42 +02:00
committed by GitHub
parent efffe56dfd
commit 4d024f3e4b
13 changed files with 26 additions and 26 deletions

View File

@ -30,19 +30,19 @@ Change the `background-color` of each `div` element based on the class names (`g
Your code should use the `hsl()` property to declare the color `green`.
```js
assert(code.match(/\.green\s*?{\s*?background-color:\s*?hsl/gi));
assert(code.match(/\.green\s*?{\s*?background-color\s*:\s*?hsl/gi));
```
Your code should use the `hsl()` property to declare the color `cyan`.
```js
assert(code.match(/\.cyan\s*?{\s*?background-color:\s*?hsl/gi));
assert(code.match(/\.cyan\s*?{\s*?background-color\s*:\s*?hsl/gi));
```
Your code should use the `hsl()` property to declare the color `blue`.
```js
assert(code.match(/\.blue\s*?{\s*?background-color:\s*?hsl/gi));
assert(code.match(/\.blue\s*?{\s*?background-color\s*:\s*?hsl/gi));
```
The `div` element with class `green` should have a `background-color` of green.