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)`.
|
Your `.red` CSS rule should have a `background` property with the value `rgb(255, 0, 0)`.
|
||||||
|
|
||||||
```js
|
```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--
|
# --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`.
|
Your `.green` CSS rule should have a `background` property with the value `#007F00`.
|
||||||
|
|
||||||
```js
|
```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--
|
# --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%)`.
|
Your `.blue` CSS rule should have a `background` property with the value `hsl(240, 100%, 50%)`.
|
||||||
|
|
||||||
```js
|
```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--
|
# --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`.
|
Your `.lg, .md` selector should have a `border` property set to `0`.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
assert(new __helpers.CSSHelp(document).getStyle('.lg, .md')?.border === '0px');
|
assert(new __helpers.CSSHelp(document).getStyle('.lg, .md')?.borderWidth === '0px');
|
||||||
```
|
```
|
||||||
|
|
||||||
# --seed--
|
# --seed--
|
||||||
|
Reference in New Issue
Block a user