Skip to content

Make the serialize_alpha function public. #340

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

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

tiaanl
Copy link
Collaborator

@tiaanl tiaanl commented May 19, 2023

This function is very handy in other places and is worth making public. Right now it will be used to generate specified value colors in Gecko.

Copy link
Member

@emilio emilio left a comment

Choose a reason for hiding this comment

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

Looks good with that rename or similar.

src/color.rs Outdated
/// <https://drafts.csswg.org/css-color-4/#serializing-alpha-values>
#[inline]
fn serialize_alpha(
pub fn serialize_alpha(
Copy link
Member

Choose a reason for hiding this comment

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

Let's call this serialize_color_alpha or something then, since there's a other alpha values like opacity that are just a plain number / percent.

@emilio
Copy link
Member

emilio commented May 19, 2023

@bors-servo delegate+

@bors-servo
Copy link
Contributor

✌️ @tiaanl can now approve this pull request

@tiaanl
Copy link
Collaborator Author

tiaanl commented May 22, 2023

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit d5230b9 has been approved by tiaanl

@bors-servo
Copy link
Contributor

⌛ Testing commit d5230b9 with merge 8a24b11...

@bors-servo
Copy link
Contributor

☀️ Test successful - checks-github
Approved by: tiaanl
Pushing 8a24b11 to master...

@bors-servo bors-servo merged commit 8a24b11 into servo:master May 22, 2023
@tiaanl tiaanl deleted the pub-alpha branch May 22, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants