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 upcolor value should be canonicalized when serializing #15397
Closed
Comments
bors-servo
added a commit
to servo/rust-cssparser
that referenced
this issue
Jun 21, 2017
Serialize currentcolor as canonicalized form Serialize currentcolor as canonicalized form instead of currentColor. This is needed for servo/servo#15397 I'm not sure about version bump though. Is that a breaking change? <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-cssparser/162) <!-- Reviewable:end -->
bors-servo
added a commit
that referenced
this issue
Jun 22, 2017
Bump cssparser to 1.16.1 This will fix #15397 --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- 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/17461) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For example:
CURRENTcolorshould be serialized tocurrentcolorRGB(0, 128, 0)should be serialized torgb(0, 128, 0)Test code:
Unfortunately there doesn't seem to be any spec for this algorithm, and I've filed w3c/csswg-drafts#1004 for that.
I guess this would need changes to both Servo and cssparser.