mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
fix: Error in build an event flyer when stylesheet has an @import rule (#60155)
Co-authored-by: Ilenia M <nethleen@gmail.com>
This commit is contained in:
parent
b3b9b487b1
commit
3d4894d431
@ -133,7 +133,7 @@ The width of your `hr` elements should be set using a percent value.
|
||||
|
||||
```js
|
||||
assert.isTrue([...new __helpers.CSSHelp(document).getCSSRules().values()].some(rule =>
|
||||
rule.selectorText.split(',').some(selector =>
|
||||
rule.selectorText?.split(',').some(selector =>
|
||||
selector.trim() === 'hr' &&
|
||||
rule.style.width?.endsWith('%')
|
||||
)
|
||||
@ -144,7 +144,7 @@ The width of your `section` elements should be set using a percent value.
|
||||
|
||||
```js
|
||||
assert.isTrue([...new __helpers.CSSHelp(document).getCSSRules().values()].some(rule =>
|
||||
rule.selectorText.split(',').some(selector =>
|
||||
rule.selectorText?.split(',').some(selector =>
|
||||
selector.trim() === 'section' &&
|
||||
rule.style.width?.endsWith('%')
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user