Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CSS range restrictions in CSS Grammar parser #149

Merged
merged 5 commits into from
May 9, 2019

Conversation

@dontcallmedom dontcallmedom requested a review from tidoust May 8, 2019 13:55
@@ -37,6 +37,8 @@ const primitives = new Map([
["position", {url: "https://drafts.csswg.org/css-values-4/#typedef-position"}]
]);

const numericTypes = ["integer", "number", "percentage", "number-percentage", "length-percentage", "frequency-percentage", "angle-percentage", "time-percentage", "dimension", "length", "angle", "time", "frequency", "resolution"];
Copy link
Member

Choose a reason for hiding this comment

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

What is this definition for? It does not seem to be used anywhere else in the code.

Copy link
Member Author

Choose a reason for hiding this comment

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

I've now removed it - I had initially thought of throwing when range was used on a non-numeric type, but that goes too close to a validator (vs a parser).

@tidoust tidoust merged commit 0c20f69 into master May 9, 2019
@tidoust tidoust deleted the css-range-restrictions branch September 16, 2019 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants