@cross-css/native-darwin-arm64 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/package.json +1 -1
- package/xcss.node +0 -0
package/README.md
CHANGED
|
@@ -40,3 +40,26 @@ tokens; `definition`, `references`, and `hover` accept zero-based UTF-16 positio
|
|
|
40
40
|
These APIs do not compile CSS or read files. See the repository's
|
|
41
41
|
[language-service contract](https://github.com/IvanKobtsev/XCSS/blob/main/docs/language-service.md).
|
|
42
42
|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## CSS declaration validation inputs (API v2, native 0.3.2)
|
|
46
|
+
|
|
47
|
+
`LanguageService.cssDeclarations(uri)` returns `{ revision, declarations }` from
|
|
48
|
+
the same analysis snapshot as other editor queries, without compiling CSS.
|
|
49
|
+
Each declaration contains `property`, `propertyRange`, `valueRange`, `context`,
|
|
50
|
+
`checkable`, and ordered `parts`. Ranges are zero-based UTF-16 positions in the
|
|
51
|
+
original source. Context is stylesheet, rule, injection, keyframes, or at-rule.
|
|
52
|
+
Each part contains a `range` and either literal `text` or a resolved `valueType`;
|
|
53
|
+
the other field is absent. Literal gaps, whitespace, comments, and CSS function
|
|
54
|
+
syntax are retained. Resolved parameters and declared custom-property references
|
|
55
|
+
use the existing analyzer's types, never their initializer or call-site argument.
|
|
56
|
+
Arithmetic with a known analysis result type is exposed as a single typed part.
|
|
57
|
+
|
|
58
|
+
Unknown references, native var(), recovery regions, transition groups and other
|
|
59
|
+
unsupported transformations make values uncheckable; property names remain
|
|
60
|
+
available. Parts on uncheckable declarations are incomplete and must not be
|
|
61
|
+
validated. XCSS directives, variable registrations, and direct declarations in
|
|
62
|
+
descriptor at-rule bodies are excluded. Conditional blocks nested in rules inherit their declaration context. Rules nested inside at-rules remain
|
|
63
|
+
eligible. Consumers may substitute representative CSS values for typed parts;
|
|
64
|
+
this is a broad compatibility check, not proof for all values of that type.
|
|
65
|
+
Changes to any file or resolution invalidate the snapshot revision.
|
package/package.json
CHANGED
package/xcss.node
CHANGED
|
Binary file
|