Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Update CSSScale.cssText to new style #142

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

rjwright
Copy link
Contributor

Make CSSScale.cssText reflect input text for parsed values & make it lazy.

Makes it consistent with https://github.com/css-typed-om/typed-om/pull/130/files (rotate and skew) and #141 (translate).

Other types will follow in separate PRs.

@@ -28,11 +30,17 @@
}
switch (xyOrZ) {
case 'x':
return [new CSSScale(numbers[0], 1), remaining];
var result = [new CSSScale(numbers[0], 1), remaining];
result[0]._inputType = 'x';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same comment I made on your other PR goes for this one too - what do you think?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants