We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb27bba commit f737598Copy full SHA for f737598
__tests__/stylesheet.js
@@ -2299,6 +2299,16 @@ describe('CSS grammar - semantic', () => {
2299
expect(styleSheet.cssRules[0].cssText).toBe(normalizeText(input))
2300
})
2301
2302
+ test('nested style rule - invalid prelude containing an undeclared namespace prefix', () => {
2303
+ const styleSheet = createStyleSheet(`
2304
+ @namespace svg "http://www.w3.org/2000/svg";
2305
+ style {
2306
+ html|nested {}
2307
+ svg|nested {}
2308
+ }
2309
+ `)
2310
+ expect(styleSheet.cssRules[1].cssText).toBe('style { & svg|nested {} }')
2311
+ })
2312
test('nested style rule - invalid block contents', () => {
2313
const styleSheet = createStyleSheet(`
2314
style {
0 commit comments