Added implicitly defined keywords to completions.js

This commit is contained in:
confused-Techie 2023-02-25 14:33:00 -08:00
parent 0b6fd03db2
commit b15410ee5c
2 changed files with 2368 additions and 186 deletions

File diff suppressed because it is too large Load Diff

View File

@ -181,11 +181,13 @@ function getValuesOfProp(value, allValues) {
// Like mentioned above `value` = "value1 | value2 | <valueGroupName>"
// https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax
// We will first insert the implicitly defined keywords that apply to all CSS properties
let values = [ "inherit", "initial", "unset" ];
if (!value || value.length < 0) {
return [];
return values;
}
let values = [];
let parser = new CSSParser(value);
let rawArrayValues = parser.parse();
@ -293,7 +295,6 @@ function dedupPropValues(values) {
check[values[i]] = true;
}
}
console.log(`Dedup Took: ${values} returned: ${out}`);
return out;
}