mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 14:14:36 +08:00
Previously, the contrast ratio might have been rounded up (using toFixed) giving confusing results. For example, the value 6.997 is below the threshold of 7.00, but it was shown as 7.00 and the contrast value was still marked as insufficient. Bug: chromium:1166128 Change-Id: I8e4539a3c8794e409606af5f211b341985078961 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2631112 Reviewed-by: Jan Scheffler <janscheffler@chromium.org> Reviewed-by: Mathias Bynens <mathias@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org>