Skip to content

Commit

Permalink
Correct calculated sRGB result (small error, enough to alter 0..255 r…
Browse files Browse the repository at this point in the history
…esult)
  • Loading branch information
svgeesus authored and DanielRyanSmith committed Feb 28, 2022
1 parent 5cfe787 commit 9c46444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/css-color/lab-005-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<meta charset="utf-8">
<title>CSS Color 4: Specifying Lab and LCH</title>
<style>
.test { background-color: rgb(10.7906% 75.5567% 66.3982%); width: 12em; height: 12em; } /* lab(70% -45 0) converted to sRGB */
.test { background-color: rgb(10.751% 75.558% 66.398%); width: 12em; height: 12em; } /* lab(70% -45 0) converted to sRGB */
</style>
<body>
<p>Test passes if you see a single square, and not two rectangles of different colors.</p>
Expand Down
2 changes: 1 addition & 1 deletion css/css-color/lab-005.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="assert" content="lab() with no alpha, negative a axis">
<style>
.test { background-color: red; width: 12em; height: 6em; margin-top: 0; }
.ref { background-color: rgb(10.7906% 75.5567% 66.3982%); width: 12em; height: 6em; margin-bottom: 0; } /* lab(70% -45 0) converted to sRGB */
.ref { background-color: rgb(10.751% 75.558% 66.398%); width: 12em; height: 6em; margin-bottom: 0; } /* lab(70% -45 0) converted to sRGB */
.test { background-color: lab(70% -45 0); }
</style>
<body>
Expand Down

0 comments on commit 9c46444

Please sign in to comment.