Skip to content

Commit

Permalink
WIP: Fix lab/lch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GPHemsley committed Dec 30, 2022
1 parent ba50ed3 commit 4e231ea
Show file tree
Hide file tree
Showing 3 changed files with 50,390 additions and 4,919 deletions.
4 changes: 2 additions & 2 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ impl ToCss for CielabColor {
};
dest.write_str(" ")?;
match lch_coords.chroma {
Some(chroma) => chroma.to_css(dest)?,
Some(chroma) => chroma.max(0.).to_css(dest)?,
None => dest.write_str("none")?,
};
dest.write_str(" ")?;
Expand Down Expand Up @@ -573,7 +573,7 @@ impl ToCss for OklabColor {
};
dest.write_str(" ")?;
match lch_coords.chroma {
Some(chroma) => chroma.to_css(dest)?,
Some(chroma) => chroma.max(0.).to_css(dest)?,
None => dest.write_str("none")?,
};
dest.write_str(" ")?;
Expand Down
Loading

0 comments on commit 4e231ea

Please sign in to comment.