forked from mirrors/gecko-dev
Bug 1812281 - [devtools] Add lab, lch, oklab and oklch to DevTools autocomplete. r=emilio.
Differential Revision: https://phabricator.services.mozilla.com/D167803
This commit is contained in:
parent
3089164aa5
commit
2bb6493572
2 changed files with 8 additions and 2 deletions
|
|
@ -5,12 +5,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=877690
|
|||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 877690</title>
|
||||
<title>Test for InspectorUtils.getCSSValuesForProperty</title>
|
||||
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 877690 **/
|
||||
/** Test for InspectorUtils.getCSSValuesForProperty **/
|
||||
|
||||
const InspectorUtils = SpecialPowers.InspectorUtils;
|
||||
|
||||
|
|
@ -36,6 +36,9 @@ function do_test() {
|
|||
if (SpecialPowers.getBoolPref("layout.css.color-mix.enabled")) {
|
||||
allColors.push("color-mix");
|
||||
}
|
||||
if (SpecialPowers.getBoolPref("layout.css.more_color_4.enabled", false)) {
|
||||
allColors.push("lab", "lch", "oklab", "oklch");
|
||||
}
|
||||
var allGradients = [
|
||||
"linear-gradient",
|
||||
"-webkit-linear-gradient",
|
||||
|
|
|
|||
|
|
@ -1082,6 +1082,9 @@ impl SpecifiedValueInfo for Color {
|
|||
if static_prefs::pref!("layout.css.color-mix.enabled") {
|
||||
f(&["color-mix"]);
|
||||
}
|
||||
if static_prefs::pref!("layout.css.more_color_4.enabled") {
|
||||
f(&["lab", "lch", "oklab", "oklch"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue