regex-ise funny lessons
This commit is contained in:
@@ -24,7 +24,7 @@ First, in the `.red` CSS rule, set the `background` property to `linear-gradient
|
||||
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg)`.
|
||||
|
||||
```js
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg)');
|
||||
assert.match(__helpers.removeWhiteSpace(code), /\.red\{.*?background:linear-gradient\(90deg\)/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@@ -16,7 +16,7 @@ In the `linear-gradient` function, use the `rgb` function to set the first color
|
||||
Your `.red` CSS rule should have a `background` property with the value `linear-gradient(90deg, rgb(255, 0, 0))`.
|
||||
|
||||
```js
|
||||
assert.equal(new __helpers.CSSHelp(document).getStyle('.red').getPropVal('background', true), 'linear-gradient(90deg,rgb(255,0,0))');
|
||||
assert.match(__helpers.removeWhiteSpace(code), /\.red\{.*?background:linear-gradient\(90deg,rgb\(255,0,0\)\)/);
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
Reference in New Issue
Block a user