Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNumber::parse should not simplify calc() to number when parsing #15960
Labels
Milestone
Comments
|
cc @emilio |
bors-servo
added a commit
that referenced
this issue
Mar 26, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 26, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 26, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Mar 27, 2017
style: Make numbers keep track of whether they were specified as calc(). Fixes #15960 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16144) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Length::parsedoesn't simplifycalc()to a single length during parsing,Number::parseshouldn't do so either.For example, the code below
should output
calc(1)rather than1, just like changing it tocalc(1px)would outputcalc(1px)not1px.