Commit Graph

22 Commits

Author SHA1 Message Date
confused-Techie
cb31730a27 Implement bubbleSort() and propertySort() 2023-05-21 15:55:34 -07:00
confused-Techie
a27b70be71 Finish adding all manual properties 2023-03-09 20:07:34 -08:00
confused-Techie
e7feeacd27 Add manual property descriptions to reduce empties to 17 2023-03-09 19:50:32 -08:00
confused-Techie
46f96db790 Many many others 2023-03-06 20:20:05 -08:00
confused-Techie
828f326dc7 Add in stroke spec properties 2023-03-06 19:01:32 -08:00
confused-Techie
b79cc7b756 Add other alias' and property mappings 2023-03-06 18:56:14 -08:00
confused-Techie
04119047b0 Add all legacy alias' and more 2023-03-06 18:30:05 -08:00
confused-Techie
f34341bd49 First manual property description, and implementation of it's functionality 2023-03-06 17:43:04 -08:00
confused-Techie
a2237f3a9f Also add checks to svg/elements to collect missing marker 2023-03-06 17:08:16 -08:00
confused-Techie
732a353f45 Protect against collecting warnings and notices as descriptions 2023-03-04 19:32:22 -08:00
confused-Techie
7c1e1d37b1 Resolve the initial blank descriptions 2023-03-04 19:06:04 -08:00
DeeDeeG
10240764f9 autocomplete-css: Handle more recursion
Don't want those implicit values showing in the middle of suggested
auto-completions! Only at the end!

Return an empty array instead of the implicit values where needed,
if recursing.
2023-03-04 00:50:11 -05:00
DeeDeeG
ebdd711d64 autocomplete-css: Handle recursion for appending implicit values
Avoid appending the implicit values multiple times / in multiple
spots in the values list per property.

(These duplicate implicit values would be deduped, but the middle ones
would be the ones that would be kept, whereas we want to only keep
the bottom ones.)

---

Details:

The function that adds the implicit values to each property is
recursed sometimes, based on the structure of the data we are
ingesting. For the deeper/innner calls of this function, avoid
appending the implicit values, since we will be doing that at the end
of the outer/upper calls.

Makes sure the implicit values are not added in the middle *and* at
the bottom, in which scenario they would eventually be deduped
(removing the bottom copy, I suppose), but leaving one copy of the
implicit values smack-dab in the middle of the values list for the
given property.

We want only one copy of these values, sure, so deduping is
appreciated, but they should be *at the bottom* of the list of values.
Not the middle. So we gotta make sure the only copy fed through the
deduper function is the one at the bottom.
2023-03-03 23:44:09 -05:00
DeeDeeG
4eb9758ab6 autocomplete-css: Put implicit values last
(This commit should just be re-arranging the values,
so as to put the implicit ones last.)

These implicit values are the same for all properties.

I find it more useful to view the property-specific values first,
since users may not actually know what property-specific values exist
for a given CSS property, and these implicit values are *always*
allowed... (I think they are, anyway).

This shows those property-specific values first, better advertising
what options are actually available to use. (Besides that, as far as I
know, the implicit "inherit", "initial", "unset" values are not as
commonly used as the property-specific values anyway.)
2023-03-03 21:42:10 -05:00
DeeDeeG
1ad19ceb7d autocomplete-css: Run node update.js
Seems to re-order some of the properties, for some reason?
2023-03-03 21:27:25 -05:00
confused-Techie
b15410ee5c Added implicitly defined keywords to completions.js 2023-02-25 14:33:00 -08:00
confused-Techie
2c5ecd01aa Fixed parts of update.js, and fixed some tests, broke others
`update.js` now will not overwrite any duplicated property entries. In the case of duplication found will write only the one with the most values.

Additionally values are now dedupe prior to adding.

Finally we now support Non-Terminal Data Types in CSS Value Definition Syntax, allowing us to resolve values when the value group refers to another property
2023-02-25 02:19:01 -08:00
confused-Techie
705e0d9a0d Ensure getValuesOfProp() properly receives full css object rather than just a single specs value 2023-02-24 20:03:13 -08:00
confused-Techie
9137f9dea1 Allow manual HTML tags replacement from MDN docs 2023-02-24 19:39:28 -08:00
confused-Techie
6758361ebe Fixed type in completions.json Removed unneeded files 2023-02-23 21:57:21 -08:00
confused-Techie
34b22ae380 Final touches, and lots of them 2023-02-23 21:50:36 -08:00
confused-Techie
b7c94a875c Bundle autocomplete-css 2022-12-11 15:49:28 -08:00