Skip to content

Commit

Permalink
Also add support for forward slash in grid, add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel authored and argyleink committed Aug 1, 2023
1 parent d05dd39 commit de095fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CSS3.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -6924,6 +6924,8 @@ contexts:
- include: end-value
- include: value-css-wide
- include: string
- match: '\/'
scope: keyword.operator.arithmetic.css
- match: '\b(?:subgrid|none|dense|auto-flow){{b}}'
scope: support.constant.property-value.css
- include: track-list
Expand Down
2 changes: 2 additions & 0 deletions test/property-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -3822,6 +3822,7 @@
grid: inherit;
grid: unset;
grid: 10rem 10rem 10rem 10rem / 1fr 1fr 1fr 1fr;
grid: repeat(4, 10rem) / repeat(4, 1fr);
grid: 12rem 12rem 12rem 12rem / 10rem 10rem 10rem 10rem;
-webkit-grid: 12rem 12rem 12rem 12rem / 10rem 10rem 10rem 10rem;

Expand Down Expand Up @@ -3940,6 +3941,7 @@
grid-template: unset;
grid-template: none;
grid-template: auto 1fr auto / auto 1fr;
grid-template: auto 1fr auto / auto repeat(3, 1fr);
grid-template: auto 1fr auto /
[header-top] "a a a" [header-bottom]
[main-top] "b b b" 1fr [main-bottom];
Expand Down

0 comments on commit de095fd

Please sign in to comment.