Forked from
The Tor Project / Applications / Tor Browser
515498 commits behind the upstream repository.
-
Tiaan Louw authored
Bug 1815186 - Add ColorTo to InspectorUtils to convert color to other color spaces. r=emilio,layout-reviewers,supply-chain-reviewers This will allow calling `InspectorUtils.ColorTo("red", "lab")` and receive `{color: "lab(54.3 80.8 69.9)", components: [54.3, 80.8, 69.9, 1.0], adjusted: false}`. The adjusted value is always "false", because gamut checking and mapping is not supported at the moment. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1823363 Differential Revision: https://phabricator.services.mozilla.com/D169942
Tiaan Louw authoredBug 1815186 - Add ColorTo to InspectorUtils to convert color to other color spaces. r=emilio,layout-reviewers,supply-chain-reviewers This will allow calling `InspectorUtils.ColorTo("red", "lab")` and receive `{color: "lab(54.3 80.8 69.9)", components: [54.3, 80.8, 69.9, 1.0], adjusted: false}`. The adjusted value is always "false", because gamut checking and mapping is not supported at the moment. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1823363 Differential Revision: https://phabricator.services.mozilla.com/D169942