File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed
packages/svelte/tests/css/samples/snippets Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,32 @@ import { test } from '../../test';
22
33export default test ( {
44 warnings : [
5+ {
6+ code : 'css_unused_selector' ,
7+ message : 'Unused CSS selector "p .foo"' ,
8+ start : {
9+ line : 28 ,
10+ column : 1 ,
11+ character : 356
12+ } ,
13+ end : {
14+ line : 28 ,
15+ column : 7 ,
16+ character : 362
17+ }
18+ } ,
519 {
620 code : 'css_unused_selector' ,
721 message : 'Unused CSS selector "span div"' ,
822 start : {
923 line : 31 ,
1024 column : 1 ,
11- character : 461
25+ character : 383
1226 } ,
1327 end : {
1428 line : 31 ,
1529 column : 9 ,
16- character : 469
30+ character : 391
1731 }
1832 }
1933 ]
Original file line number Diff line number Diff line change 1111 p .svelte-xyz span : where (.svelte-xyz ) {
1212 color : green;
1313 }
14- p . svelte-xyz .foo : where (. svelte-xyz ) {
15- color : purple; /* doesn't match, but our static analysis doesn't handle this currently */
16- }
14+ /* (unused) p .foo {
15+ color: red;
16+ }*/
1717 /* (unused) span div {
1818 color: red;
1919 }*/
Original file line number Diff line number Diff line change 2626 color : green ;
2727 }
2828 p .foo {
29- color : purple ; /* doesn't match, but our static analysis doesn't handle this currently */
29+ color : red ;
3030 }
3131 span div {
3232 color : red ;
3333 }
34- </style >
34+ </style >
You can’t perform that action at this time.
0 commit comments