Files
sousa-gecko/devtools/client/shared/inplace-editor-utils/constants.mjs
T
Nicolas Chevobbe 1fa82099a0 Bug 2025761 - [devtools] Add autocomplete for CSS (repeating-)linear-gradient(). r=devtools-reviewers,ochameau
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
2026-03-25 00:45:13 +00:00

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",
];