-
Notifications
You must be signed in to change notification settings - Fork 136
color: Add a way to hook into the parsing of the components of the color functions. #207
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
Conversation
r? @SimonSapin |
Do you have a Servo patch yet that uses this API? (To make sure it is sufficient, e.g. in r+ with changes if so Reviewed 2 of 2 files at r1. src/color.rs, line 151 at r1 (raw file):
Please use src/color.rs, line 155 at r1 (raw file):
Please rename this to Comments from Reviewable |
…lor functions. This way we'll be able to implement calc-in-color without duplicating a ton of code for calc() handling in Servo. Minor version bump because the API is not broken, just expanded to support providing an optional `ColorComponentParser`.
bf479d5
to
97890a3
Compare
Can you take another look? Had to add a couple things for servo. |
@bors-servo r+ Reviewed 2 of 2 files at r2. Comments from Reviewable |
📌 Commit 97890a3 has been approved by |
color: Add a way to hook into the parsing of the components of the color functions. This way we'll be able to implement calc-in-color without duplicating a ton of code for calc() handling in Servo. Minor version bump because the API is not broken, just expanded to support providing an optional `ColorComponentParser`. <!-- 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/207) <!-- Reviewable:end -->
☀️ Test successful - status-travis |
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 <!-- 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/19457) <!-- Reviewable:end -->
style: support calc() in color functions. Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 <!-- 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/19457) <!-- Reviewable:end -->
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 5e87eadeda400ec41303d8d2aa506bf65fd86ea4
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
…emilio:color-calc); r=SimonSapin Depends on #19456 and servo/rust-cssparser#207. Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=984021 Source-Repo: https://github.com/servo/servo Source-Revision: 3cef09ae217ece7fa276d1be653c7c36dee7febc UltraBlame original commit: 43e678a70a2a7175b59ebd5e84ab6e071ec9e009
This way we'll be able to implement calc-in-color without duplicating a ton of
code for calc() handling in Servo.
Minor version bump because the API is not broken, just expanded to support
providing an optional
ColorComponentParser
.This change is