fix(curriculum): change tests to make them pass on firefox (#44685)

This commit is contained in:
Krzysztof G
2022-01-05 18:12:10 +01:00
committed by GitHub
parent ddbe5f3fc0
commit 75f64d1728
4 changed files with 4 additions and 4 deletions

View File

@ -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--

View File

@ -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--

View File

@ -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--

View File

@ -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--