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:
Melvin Kosisochukwu 2025-06-03 21:28:15 +01:00 committed by GitHub
parent b3b9b487b1
commit 3d4894d431
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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('%')
)