fix(curriculum): change tests to make them pass on firefox (#44685)
This commit is contained in:
@ -20,7 +20,7 @@ In the `.red` CSS rule, change the `background-color` property to `background`.
|
||||
Your `.red` CSS rule should have a `background` property with the value `rgb(255, 0, 0)`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.red').cssText === 'background: rgb(255, 0, 0);');
|
||||
assert.include(new __helpers.CSSHelp(document).getStyle('.red').cssText, 'background: rgb(255, 0, 0)');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -16,7 +16,7 @@ In the `.green` CSS rule, change the `background-color` property to `background`
|
||||
Your `.green` CSS rule should have a `background` property with the value `#007F00`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.green').cssText === 'background: rgb(0, 127, 0);');
|
||||
assert.include(new __helpers.CSSHelp(document).getStyle('.green').cssText, 'background: rgb(0, 127, 0)');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -16,7 +16,7 @@ In the `.blue` CSS rule, change the `background-color` property to `background`.
|
||||
Your `.blue` CSS rule should have a `background` property with the value `hsl(240, 100%, 50%)`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.blue').cssText === 'background: rgb(0, 0, 255);');
|
||||
assert.include(new __helpers.CSSHelp(document).getStyle('.blue').cssText, 'background: rgb(0, 0, 255)');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
@ -14,7 +14,7 @@ You may notice there is still a small border at the bottom of your `.lg` element
|
||||
Your `.lg, .md` selector should have a `border` property set to `0`.
|
||||
|
||||
```js
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.lg, .md')?.border === '0px');
|
||||
assert(new __helpers.CSSHelp(document).getStyle('.lg, .md')?.borderWidth === '0px');
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
Reference in New Issue
Block a user