aliascss 1.5.1 → 1.5.3
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/CHANGELOG.md +27 -0
- package/README.md +408 -553
- package/dist/aliascss.js +1 -1
- package/lib/classPrinter.js +25 -16
- package/lib/css-properties-all.js +43 -10
- package/lib/node/compileFile.js +36 -9
- package/lib/returnPropertyAndValue.js +17 -6
- package/lib/returnStatement.js +18 -4
- package/lib/utils/cssFunc.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 1.5.3
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- Browser runtime: a page with a `keyframes-…` element threw "Cannot read properties of undefined (reading 'has')" and stopped styling every element after it (1.5.2 regression).
|
|
5
|
+
- Decimals with a leading dot: `o-.5`, `m-.5rem`, `scale-.98`, `--x-o:.5` compile to `0.5`. Before, they compiled to a negative value or an empty rule. `0.5` stays the recommended form.
|
|
6
|
+
- `w-var(--x-w)` and other `-var(…)` values compile (`width: var(--x-w)`), fallbacks included.
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- `display-webkit-box` / `d-webkit-box`.
|
|
10
|
+
## 1.5.2
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- grid-column / grid-row: a negative number after "/" is kept (`gc-1/-1` → `grid-column: 1 / -1`; it compiled to `1 / 1`).
|
|
14
|
+
- grid-template-columns / grid-auto-columns: decimal values compile correctly.
|
|
15
|
+
- Keyframes (browser runtime): each @keyframes rule is written once, instead of again on every re-print.
|
|
16
|
+
- Keyframes: names keep working when HTML lower-cases the attribute; the CLI lower-cases names to match.
|
|
17
|
+
- Keyframes: a single stop accepts an optional dash and %, and empty rules are skipped.
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
- `w-var(--x-width)` and other `-var(…)` values are accepted (same as `w--x-width`).
|
|
21
|
+
- `display-webkit-box`.
|
|
22
|
+
- `cursor-grab` (and other cursor keywords that didn't compile).
|
|
23
|
+
|
|
24
|
+
### Unchanged by design
|
|
25
|
+
- Multi-stop keyframes use `@[0,25,50][…]` only; the colon form is not supported.
|
|
26
|
+
- `--s-` and `--sb-` stay selector aliases, so variables must start with `--x-`.
|
|
27
|
+
|
|
1
28
|
## AliasCSS 1.5.1
|
|
2
29
|
|
|
3
30
|
A reliability release: fewer surprises in the browser, quieter consoles and correct negative values everywhere.
|