Skip to content

Commit

Permalink
Add tests, fix value 'none' for container
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel authored and argyleink committed Aug 2, 2023
1 parent de616a0 commit 9797bfe
Show file tree
Hide file tree
Showing 2 changed files with 93 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 @@ -5580,6 +5580,8 @@ contexts:
- meta_content_scope: meta.property-value.container.css
- include: end-value
- include: value-css-wide
- match: \bnone{{b}}
scope: support.constant.property-value.css
- match: '\b(?:size|normal|inline-size){{b}}'
scope: support.constant.property-value.css
- match: '\/'
Expand Down
91 changes: 91 additions & 0 deletions test/property-list.css
Original file line number Diff line number Diff line change
Expand Up @@ -2907,6 +2907,97 @@
-moz-column-width: 0.3vw;
-webkit-column-width: 0.3vw;

container: foo;
container: foo bar;
container: none;
container: inherit;
container: initial;
container: revert;
container: revert-layer;
container: unset;
container: foo / normal;
container: foo / size;
container: foo / inline-size;
container: foo / inherit;
container: foo / initial;
container: foo / revert;
container: foo / revert-layer;
container: foo / unset;
container: foo bar / normal;
container: foo bar / size;
container: foo bar / inline-size;
container: foo bar / inherit;
container: foo bar / initial;
container: foo bar / revert;
container: foo bar / revert-layer;
container: foo bar / unset;
container: none / normal;
container: none / size;
container: none / inline-size;
container: none / inherit;
container: none / initial;
container: none / revert;
container: none / revert-layer;
container: none / unset;
container: inherit / normal;
container: inherit / size;
container: inherit / inline-size;
container: inherit / inherit;
container: inherit / initial;
container: inherit / revert;
container: inherit / revert-layer;
container: inherit / unset;
container: initial / normal;
container: initial / size;
container: initial / inline-size;
container: initial / inherit;
container: initial / initial;
container: initial / revert;
container: initial / revert-layer;
container: initial / unset;
container: revert / normal;
container: revert / size;
container: revert / inline-size;
container: revert / inherit;
container: revert / initial;
container: revert / revert;
container: revert / revert-layer;
container: revert / unset;
container: revert-layer / normal;
container: revert-layer / size;
container: revert-layer / inline-size;
container: revert-layer / inherit;
container: revert-layer / initial;
container: revert-layer / revert;
container: revert-layer / revert-layer;
container: revert-layer / unset;
container: unset / normal;
container: unset / size;
container: unset / inline-size;
container: unset / inherit;
container: unset / initial;
container: unset / revert;
container: unset / revert-layer;
container: unset / unset;

container-name: foo;
container-name: foo bar;
container-name: none;
container-name: inherit;
container-name: initial;
container-name: revert;
container-name: revert-layer;
container-name: unset;

container-type: normal;
container-type: size;
container-type: inline-size;
container-type: inherit;
container-type: initial;
container-type: revert;
container-type: revert-layer;
container-type: unset;

content: initial;
content: inherit;
content: unset;
Expand Down

0 comments on commit 9797bfe

Please sign in to comment.