aliascss 1.5.5 → 1.5.6

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 CHANGED
@@ -1,3 +1,60 @@
1
+
2
+ ## 1.5.6
3
+
4
+ ### Fixed
5
+ - Named groups with an `@` scope are read by the CLI: `class-panel[@md]="p-32px d-grid"` (the attribute was skipped).
6
+ - Browser: a group attribute works on an element that has no `class` attribute: `<div class-card="p-24px">`.
7
+
8
+ ### Changed
9
+ - Browser: `class:name` groups need `useColon: true`, the same as the CLI. `class-name` and `class_name` work by default.
10
+ ## 1.5.5
11
+
12
+ ### Fixed
13
+ - `background-position`, `background-position-x` and `background-position-y` keep negative values: `bgp--200%-0` → `-200% 0`, `bgp-left--10px-top` → `left -10px top`, `bgp-left-10px__right--5px` → `left 10px, right -5px`. `50p` no longer adds an extra space after `%`.
14
+ - Vendor-prefixed properties work inside groups and exports: `[-webkit-line-clamp-2,d-grid]--as-x`, `--hover[-webkit-line-clamp-3]--as-y`.
15
+ - Bare elements work inside pseudo-functions: `--has(nav)`, `--is(h1,h2)`, `--not(p)`, `--where(a)`, `--has(input--checked)`. Before, they compiled to an empty `:has()`. `--has(_nav)` still works, and `--has(__nav)` is still `:has(> nav)`.
16
+ - `border-top-0`, `border-bottom-0`, `border-left-0`, `border-right-0` (and `bt-0` …) compile without a warning.
17
+ - Generated static classes: no more empty declarations (`adu-` → `animation-duration:`) and no more keys containing spaces that no class could match. About 600 unusable entries removed.
18
+ - Invalid values removed from the value lists:
19
+ - `none` from `min-width`, `min-height`, `min-block-size`, `min-inline-size`, `gap`, `row-gap`, `grid-gap`, `grid-row-gap`, `grid-column-gap`, and every `scroll-padding-*`.
20
+ - `text-decoration-style`: no more `groove`, `ridge`, `inset`, `outset`, `none`, `hidden`. `text-decoration`: no more `groove`, `ridge`, `inset`, `outset`, `hidden`.
21
+ - `break-inside`: only `auto`, `avoid`, `avoid-page`, `avoid-column`, `avoid-region`.
22
+ - `display: compact` and `display: container`; `outline-style: hidden`; `text-align: auto`; `scroll-timeline-axis: none`; `justify-items: unsafe`; `zoom: reset`.
23
+ - `contain-intrinsic-*: auto` on its own (it needs a length).
24
+ - The `normal|` typo in `font-language-override`.
25
+ - `box-reflect` compiles to `-webkit-box-reflect`, the property browsers support.
26
+ - Static classes: `tdsd2` is `text-decoration-style: double` (was `doubled`); `wwow` and `owww` removed.
27
+
28
+ ### Changed
29
+ - A property or alias with no value is not a class: `fs`, `c`, `adu`, `fs-` compile to nothing. Before, they compiled to `property: initial` with a warning comment, which also styled unrelated elements that happened to use these short class names.
30
+ - Removed non-standard properties: `inset-area` (use `position-area`), `block-overflow`, `border-boundary`.
31
+
32
+ ## 1.5.4
33
+
34
+
35
+
36
+ ### Breaking
37
+ - `!important` is `--imp` (or `--important`) at the end: `c-red--imp`. `-i` is no longer important, so `d-i` (`display: inline`), `fst-i` (`font-style: italic`) and `bs-i` (`border-style: inset`) work as value codes again.
38
+ - Breakpoints need the `@`: `@md-d-none`. The bare form (`md-d-none`) compiled as a property in some cases (`print-color-adjust-exact` became `@media print`) and now compiles to nothing. `dark-` and `light-` still work without `@`.
39
+ - In anchor and timeline properties, `--name` is a name, not a variable: `anchor-name--menu` → `anchor-name: --menu`. Write `anchor-name--var--x` for `var(--x)`. Applies to `anchor-name`, `anchor-scope`, `position-anchor`, `animation-timeline`, `scroll-timeline`, `view-timeline` (and their `-name` forms), `timeline-scope`, `position-try`, `position-try-fallbacks`, `font-palette`.
40
+ - 77 aliases of rarely used properties removed. The full property name always works: `background-blend-mode-multiply` instead of `bgbm-multiply`. Where two properties shared an alias, the more common one keeps it.
41
+
42
+ ### Added
43
+ - Dashed names compile without writing the dashes: `anchor-name-menu` → `--menu`, `anchor-name-menu__card` → `--menu, --card`, `scroll-timeline-hero_y` → `--hero y`.
44
+ - Keyframe steps with a single class need no brackets: `@25-tf-translateY-3px`, `@25dn`, `@[25]-dn`.
45
+ - `@light-` media prefix (`prefers-color-scheme: light`).
46
+
47
+ ### Fixed
48
+ - Length values that are keywords no longer keep a leading dash: `w-stretch`, `gap-normal`, `fb-content` (188 properties).
49
+ - Position keywords split correctly: `transform-origin-left-10px` → `left 10px`, `background-position-right-3rem-bottom-1rem`.
50
+ - `flex-flow` with two values and `balance`: `flex-flow-row-wrap`, `flex-flow-wrap-balance`.
51
+ - Blend modes with a dash: `background-blend-mode-color-burn` compiled to `color, burn`.
52
+ - `font-variant-alternates` and `font-variant-east-asian` compiled nothing.
53
+ - `align-content` short code `s` was defined twice.
54
+ - `background-repeat` with two values (`repeat-x`-style pairs) compiles correctly.
55
+ - Exporting to several names: `[p-8px]--as-[chip,tag]` creates `.chip` and `.tag`.
56
+ - `x-import-utils-classes`: the dark-mode values were dropped; every dark rule now compiles.
57
+ - `text-decoration-style` short codes `tdsd/double` and `tdsd/dashed` were swapped.
1
58
  ## 1.5.3
2
59
 
3
60
  ### Fixed