Skip to content

Commit d7925e9

Browse files
committed
Update comments for issues
1 parent 99cf0e6 commit d7925e9

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
/**
2+
* AT IMPORT
3+
*/
4+
5+
/* new syntax rules for @import have no syntax highlighting */
16
@import url("green.css") layer supports(selector(&)) (min-width: calc(10px));
27

38
/* layer as a function */
4-
@import url("green.css") layer(bar) supports(selector(&)) (min-width: calc(10px));
9+
@import url("green.css") layer(bar) supports(selector(&))
10+
(min-width: calc(10px));

.dev-assets/syntax-issues/at-layer.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* AT LAYER
33
*/
44

5+
/* layer name has no syntax highlighting */
56
.foo {
67
@layer base {
78
block-size: 100%;

.dev-assets/syntax-issues/at-media-propertie.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*/
44

55
/* Missing token for `prefers-reduced-motion: reduce` */
6-
@media (prefers-reduced-motion: reduce) {}
6+
@media (prefers-reduced-motion: reduce) {
7+
}

.dev-assets/syntax-issues/grid-placement-slash.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* GRID PLACEMENT SLASH
33
*/
44

5+
/* Property value slash doesn't have its own syntax highlighting */
56
.example {
67
grid-row: 1 / 3;
78
grid-column: 1/-1;

.dev-assets/syntax-issues/of-not.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
.item > div:nth-child(1 of :not(.hidden)) {
1+
/**
2+
* OF :NOT
3+
*/
4+
5+
/* `of` and trailing grammar has no syntax highlighting */
6+
.item > div:nth-child(1 of :not(.hidden)) {
27
padding-left: var(--item_margin);
38
}
4-
59
.item > div:nth-last-child(1 of :not(.hidden)) {
610
padding-right: var(--item_margin);
711
}
812

13+
/* Same as above, but using CSS Nesting formatting */
914
.item {
1015
& > div {
11-
&:nth-child(1 of :not(.hidden)) {
16+
&:nth-child(1 of :not(.hidden)) {
1217
padding-left: var(--item_margin);
1318
}
1419
&:nth-last-child(1 of :not(.hidden)) {

0 commit comments

Comments
 (0)