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 upParse sizes attribute implementation #10989
Conversation
highfive
commented
May 3, 2016
|
r? @jdm |
highfive
commented
May 3, 2016
|
New code was committed to pull request. |
This is intentional - the specification says that percentages are not allowed in the sizes calculations.
This is less intentional, but is a result of us using inadequate tools for the job. It turns out that Expression::parse does not parse logical operators like |
highfive
commented
May 3, 2016
|
New code was committed to pull request. |
|
This is looking really good! There will definitely need to be more unit tests demonstrating correctness before this can merge, however. In addition to verifying the length of the result, comparing each entry in the vector with an expected value would be highly valuable. Tests for single values, values with trailing whitespace, values that contain parse errors, empty values, calling the algorithm with a maximum width, etc. |
highfive
commented
May 3, 2016
|
New code was committed to pull request. |
highfive
commented
May 3, 2016
|
New code was committed to pull request. |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
sneha1302
commented
May 4, 2016
|
@jdm : Have added a few test cases . input ("(min-width: 900px) 1000px, could you see if the test cases are fine ? |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
highfive
commented
May 4, 2016
|
New code was committed to pull request. |
|
Those tests are a good start; thanks for writing them! A few points:
|
|
|
srm09 commentedMay 3, 2016
•
edited by larsbergstrom
#10827 Original PR, somehow got merged with 0 changes. Reopened a new one, but please refer to the conversation from the original one.
This change is