Add a dedicated autocomplete function in InplaceEditor that goes through the function tokens and provide the values that could be used at this point. A test is added with extensive test cases to make sure we handle the different matrix of possibilities the linear-gradient() function accepts. Differential Revision: https://phabricator.services.mozilla.com/D286519
24 lines
618 B
JavaScript
24 lines
618 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
// TODO: We should get those from an InspectorUtils method. See Bug 2018936.
|
|
export const RECTANGULAR_COLOR_SPACES = [
|
|
"a98-rgb",
|
|
"display-p3",
|
|
"prophoto-rgb",
|
|
"rec2020",
|
|
"srgb",
|
|
"srgb-linear",
|
|
"xyz",
|
|
"xyz-d50",
|
|
"xyz-d65",
|
|
];
|
|
export const POLAR_COLOR_SPACE = ["hsl", "hwb", "lch", "oklch"];
|
|
export const HUE_INTERPOLATION_METHODS = [
|
|
"decreasing",
|
|
"increasing",
|
|
"longer",
|
|
"shorter",
|
|
];
|