Skip to content

Commit

Permalink
[CSS] support use of var function in scale and translate functions
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall committed Sep 19, 2017
1 parent c5dff30 commit de08a6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CSS/CSS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,7 @@ contexts:
pop: true
- include: comma-delimiter
- include: number-type
- include: var-function

# transform functions with comma separated <number> or <length> types
# translate(), translate3d()
Expand All @@ -1050,6 +1051,7 @@ contexts:
- include: percentage-type
- include: length-type
- include: number-type
- include: var-function

# transform functions with a single <number> or <length> type
# translateX(), translateY()
Expand Down
7 changes: 7 additions & 0 deletions CSS/syntax_test_css.css
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,13 @@
top: skewY(1rad) rotate(1turn);
/* ^^^^^^ support.function.transform.css */
/* ^^^^^ constant.numeric.css */

transform: translate(var(--center), 0) scale(var(--ripple-scale), 1);
/* ^^^^^^^^^ support.function.transform */
/* ^^^ support.function.var */
/* ^^^^^^^^ support.type.custom-property */
/* ^ constant.numeric */
/* ^^^ support.function.var */
}

.test-timing-functions {
Expand Down

0 comments on commit de08a6d

Please sign in to comment.