actual-css 0.20.1 → 0.20.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/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.20.2] - 2026-11-23
6
+ ### Added
7
+ - `.timeline-dates-start`: datelines in a shared column before the rail; every rail lines up whatever the dates say.
8
+ - Docs: Timeline · "Dates at the start".
9
+ - `--bar-radius`: corner of `.progress` and `.meter`, track and value; `0` squares a bar without vendor selectors.
10
+ - `--range-thumb-radius` and `--range-thumb-inline-size`: shape a `.range` thumb without vendor selectors; the focus ring follows.
11
+ - `cyberdeck` demo theme: dark tactical HUD with bevelled frames and hatched disabled states; `--deck-hue` and `--deck-signal-hue` re-brand it.
12
+ - Docs: Combobox bridge takes `--control-default-border` / `--border-control` for its edge, like `.input`.
13
+ - Demo: `kitchen-sink.html` prints the user agent, touch support and key CSS feature probes for device bug reports.
14
+ - Demo: `cyberdeck.html` relay console runs the theme on unchanged markup and skins `@lekoala/date-picker` in page CSS.
15
+ - Demo: `demo/scripts/deck-count.js` prints `02/04`-style length readouts and lights the next `.otp` cell.
16
+ - Docs: JavaScript runtime · "Without a build" registers a custom `data-enhance` module through a manifest with the plain bundle.
17
+ - Design note: `theme-vs-brand.md` records what belongs to the framework, the theme, the brand and the project.
18
+ - `data-tooltip-no-tap`: a touch tap no longer opens that trigger's tooltip.
19
+ - Dev: `tapSelector()` in `scripts/utils/browser.js` and `browserSuite()` dispatches a real touch tap (`withBrowserPage(…, { touch: true })` under Playwright).
20
+ - Dev: `browserSuite()` returns a `tabUntil` that presses real Tab keys in Firefox and WebKit too (Option+Tab for WebKit on macOS).
21
+
22
+ ### Changed
23
+ - `neo-brutalist` demo theme squares its bars and thumbs through the new hooks; its vendor radius rules are gone.
24
+ - Demo: Neon Ramen runs on `data-theme="cyberdeck"`; `.cut`, `.cyber-btn`, `.fieldset-cyber` and the site palette block are gone.
25
+
26
+ ### Fixed
27
+ - A touch tap opens a `data-tooltip` tooltip again, pinned until a second tap, a tap elsewhere, Escape, or a dialog or popover opening.
28
+ - `.otp`: ligatures and contextual alternates are off, so a code font cannot join `+++` across cells in Safari.
29
+ - Dialogs opened by a tap or a click no longer ring their first control in Safari; keyboard openings keep the ring.
30
+ - `cyberdeck`: a `.btn.circle` is a diamond with no tab, so a `.fab` keeps its plus and close glyphs.
31
+ - `.flyout[popover]` resets the UA popover height, so Safari 18 no longer spreads menu rows across the panel.
32
+ - `.rating`, `button.avatar` and the high-contrast `.select` pair `appearance` with `-webkit-appearance`: Safari before 15.4 drew native radios and buttons.
33
+ - `.choice-card.chip`: without `:has()`, the dot stays hidden beside the visible native input.
34
+ - Dev: `check:compat` fails an `appearance: none | auto` without its `-webkit-appearance` twin in the same rule.
35
+
5
36
  ## [0.20.1] - 2026-11-21
6
37
  ### Fixed
7
38
  - `.timeline`: dates, titles and details keep their line spacing in Firefox.
package/components.json CHANGED
@@ -530,7 +530,8 @@
530
530
  "publicHooks": [
531
531
  "--meter-track",
532
532
  "--meter-value",
533
- "--bar-height"
533
+ "--bar-height",
534
+ "--bar-radius"
534
535
  ]
535
536
  },
536
537
  {
@@ -624,7 +625,8 @@
624
625
  "publicHooks": [
625
626
  "--progress-track",
626
627
  "--progress-value",
627
- "--bar-height"
628
+ "--bar-height",
629
+ "--bar-radius"
628
630
  ],
629
631
  "states": [
630
632
  "indeterminate"
@@ -863,7 +865,8 @@
863
865
  "docs": "https://lekoala.github.io/actual-css/site/components/timeline.html",
864
866
  "classes": [
865
867
  "timeline",
866
- "timeline-dates-end"
868
+ "timeline-dates-end",
869
+ "timeline-dates-start"
867
870
  ],
868
871
  "publicHooks": [
869
872
  "--timeline-dot-size",
@@ -894,6 +897,10 @@
894
897
  ],
895
898
  ".timeline-dates-end time": [
896
899
  "::before"
900
+ ],
901
+ ".timeline-dates-start li": [
902
+ "::after",
903
+ "::before"
897
904
  ]
898
905
  }
899
906
  },
@@ -174,6 +174,10 @@ dialog:not([open]) {
174
174
  the same geometry. Public: set it on the element or on an application
175
175
  class rather than reaching for a size variant. */
176
176
  --bar-height: 0.65rem;
177
+ /* Their corner, track and value alike. The value is drawn on vendor
178
+ pseudo-elements a theme cannot reach in one rule, so this is the way to
179
+ square a bar. */
180
+ --bar-radius: var(--radius-full);
177
181
 
178
182
  /* Controls — inputs and buttons share --control-size so heights always match.
179
183
  .compact/.spacious (variants.css) switch geometry (--control-size,
@@ -2838,6 +2842,7 @@ mark {
2838
2842
  @media (forced-colors: active), (prefers-contrast: more) {
2839
2843
  .select:not(:is([multiple], [size]:not([size="1"]))) {
2840
2844
  appearance: auto;
2845
+ -webkit-appearance: auto;
2841
2846
  background-image: none;
2842
2847
  padding-inline-end: var(--control-pad-x);
2843
2848
  }
@@ -3396,7 +3401,9 @@ mark {
3396
3401
  * are not reliably applied across browsers.
3397
3402
  *
3398
3403
  * Public hooks:
3399
- * --range-thumb-size
3404
+ * --range-thumb-size (the thumb's block size, and the control's)
3405
+ * --range-thumb-inline-size
3406
+ * --range-thumb-radius
3400
3407
  * --range-track-height
3401
3408
  * --range-thumb-bg
3402
3409
  * --range-track-bg
@@ -3414,6 +3421,10 @@ mark {
3414
3421
 
3415
3422
  .range {
3416
3423
  --range-thumb-size: 1.125rem;
3424
+ /* The thumb's shape, on vendor pseudo-elements a theme cannot reach in one
3425
+ rule. The focus ring is a box-shadow, so it follows both. */
3426
+ --range-thumb-inline-size: var(--range-thumb-size);
3427
+ --range-thumb-radius: var(--radius-full);
3417
3428
  --range-track-height: 0.625rem;
3418
3429
  --range-thumb-bg: var(--intent, var(--primary));
3419
3430
  --range-track-bg: var(--border);
@@ -3471,9 +3482,9 @@ mark {
3471
3482
  .range::-webkit-slider-thumb {
3472
3483
  appearance: none;
3473
3484
  -webkit-appearance: none;
3474
- inline-size: var(--range-thumb-size);
3485
+ inline-size: var(--range-thumb-inline-size);
3475
3486
  block-size: var(--range-thumb-size);
3476
- border-radius: var(--radius-full);
3487
+ border-radius: var(--range-thumb-radius);
3477
3488
  border: 0;
3478
3489
  background: var(--range-thumb-bg);
3479
3490
  margin-block-start: calc((var(--range-track-height) - var(--range-thumb-size)) / 2);
@@ -3486,9 +3497,9 @@ mark {
3486
3497
  }
3487
3498
 
3488
3499
  .range::-moz-range-thumb {
3489
- inline-size: var(--range-thumb-size);
3500
+ inline-size: var(--range-thumb-inline-size);
3490
3501
  block-size: var(--range-thumb-size);
3491
- border-radius: var(--radius-full);
3502
+ border-radius: var(--range-thumb-radius);
3492
3503
  border: 0;
3493
3504
  background: var(--range-thumb-bg);
3494
3505
  cursor: inherit;
@@ -3791,7 +3802,8 @@ mark {
3791
3802
  border: 0;
3792
3803
  border-radius: inherit;
3793
3804
  background: var(--text-subtle);
3794
- transform: none;
3805
+ /* No transform here: the card's scale(0) keeps the dot hidden beside a
3806
+ visible native input until the :has() block above reveals it. */
3795
3807
  clip-path: circle(0.1875em at var(--choice-chip-dot));
3796
3808
  z-index: -1;
3797
3809
  transition: clip-path var(--duration);
@@ -4322,6 +4334,11 @@ mark {
4322
4334
  font-family: var(--font-mono);
4323
4335
  font-size: var(--otp-font-size);
4324
4336
  font-variant-numeric: tabular-nums;
4337
+ /* why: one glyph per cell. A code font (JetBrains Mono, Fira Code) joins
4338
+ `+++` or `->` through ligatures and contextual alternates; Chromium drops
4339
+ them under letter-spacing, Safari keeps them and the glyphs leave their
4340
+ cells. */
4341
+ font-variant-ligatures: none;
4325
4342
  line-height: var(--otp-cell-size);
4326
4343
  letter-spacing: calc(var(--otp-cell-size) + var(--otp-gap) - 1ch);
4327
4344
  text-align: start;
@@ -6425,6 +6442,9 @@ picture.bleed > img {
6425
6442
  .flyout[popover] {
6426
6443
  position: fixed;
6427
6444
  inset: auto;
6445
+ /* why: the UA's height: fit-content made Safari 18 size this grid to its
6446
+ max-block-size and spread the spare room between menu rows. */
6447
+ block-size: auto;
6428
6448
  }
6429
6449
 
6430
6450
  /* A presentation class may own its *visible* display type, but must not
@@ -7286,6 +7306,7 @@ picture.bleed > img {
7286
7306
  * --progress-track
7287
7307
  * --progress-value
7288
7308
  * --bar-height
7309
+ * --bar-radius
7289
7310
  */
7290
7311
  /* Intent boundary — inherited intents do not tint this component.
7291
7312
  Local intent classes still win because :where() has zero specificity. */
@@ -7304,25 +7325,25 @@ picture.bleed > img {
7304
7325
  block-size: var(--bar-height);
7305
7326
  overflow: hidden;
7306
7327
  border: 0;
7307
- border-radius: var(--radius-full);
7328
+ border-radius: var(--bar-radius);
7308
7329
  background: var(--progress-track);
7309
7330
  }
7310
7331
 
7311
7332
  .progress::-webkit-progress-bar {
7312
7333
  block-size: var(--bar-height);
7313
- border-radius: var(--radius-full);
7334
+ border-radius: var(--bar-radius);
7314
7335
  background: var(--progress-track);
7315
7336
  }
7316
7337
 
7317
7338
  .progress::-webkit-progress-value {
7318
7339
  block-size: var(--bar-height);
7319
- border-radius: var(--radius-full);
7340
+ border-radius: var(--bar-radius);
7320
7341
  background: var(--progress-value);
7321
7342
  }
7322
7343
 
7323
7344
  .progress::-moz-progress-bar {
7324
7345
  block-size: var(--bar-height);
7325
- border-radius: var(--radius-full);
7346
+ border-radius: var(--bar-radius);
7326
7347
  background: var(--progress-value);
7327
7348
  }
7328
7349
 
@@ -7587,6 +7608,7 @@ picture.bleed > img {
7587
7608
 
7588
7609
  button.avatar {
7589
7610
  appearance: none;
7611
+ -webkit-appearance: none;
7590
7612
  cursor: pointer;
7591
7613
  }
7592
7614
 
@@ -8127,6 +8149,7 @@ a.avatar[aria-disabled="true"] {
8127
8149
 
8128
8150
  .rating > input[type="radio"] {
8129
8151
  appearance: none;
8152
+ -webkit-appearance: none;
8130
8153
  flex: 0 0 auto;
8131
8154
  inline-size: calc(var(--rating-size) + var(--rating-gap));
8132
8155
  /* Taller than the star: the hit area grows, the drawing does not. */
@@ -8272,6 +8295,7 @@ a.avatar[aria-disabled="true"] {
8272
8295
  @media (forced-colors: active) {
8273
8296
  .rating > input[type="radio"] {
8274
8297
  appearance: auto;
8298
+ -webkit-appearance: auto;
8275
8299
  inline-size: auto;
8276
8300
  block-size: auto;
8277
8301
  background: Canvas;
@@ -8716,7 +8740,8 @@ a.avatar[aria-disabled="true"] {
8716
8740
  * block flow, so a sentence mixing text and links is never split into items.
8717
8741
  *
8718
8742
  * .timeline-dates-end moves every dateline to the inline end of the event's
8719
- * first line, beside the title instead of above it.
8743
+ * first line, beside the title instead of above it. .timeline-dates-start sets
8744
+ * them in a shared column before the rail.
8720
8745
  *
8721
8746
  * Progress through a process is .steps, not a timeline.
8722
8747
  *
@@ -8873,6 +8898,54 @@ a.avatar[aria-disabled="true"] {
8873
8898
  font-size: calc(var(--timeline-line-box) / var(--line-height));
8874
8899
  }
8875
8900
 
8901
+ /* Dates at the start: the datelines form a column before the rail, as in a
8902
+ log. The list owns three tracks (dateline, rail, event) and every event
8903
+ takes them as a subgrid, so the column is as wide as its longest dateline
8904
+ and every rail lines up. The marker, the segment and a slot stay absolutely
8905
+ positioned: placed in the rail track, that track becomes their containing
8906
+ block, and the offsets above hold unchanged.
8907
+
8908
+ Contract: after the <time>, every piece of the event is an element. A
8909
+ grid makes each run of bare text an item of its own, which could land in
8910
+ the dateline track.
8911
+
8912
+ Guarded: without subgrid these rules would leave each event a lone grid
8913
+ that scatters its children; the fallback is the default dateline above
8914
+ the title. */
8915
+ @supports (grid-template-columns: subgrid) {
8916
+ .timeline-dates-start {
8917
+ grid-template-columns: max-content var(--timeline-rail-size) minmax(0, 1fr);
8918
+ column-gap: var(--timeline-inline-gap);
8919
+ }
8920
+
8921
+ .timeline-dates-start > li {
8922
+ display: grid;
8923
+ grid-column: 1 / -1;
8924
+ grid-template-columns: subgrid;
8925
+ /* The smaller dateline shares the title's baseline on the first row. */
8926
+ align-items: first baseline;
8927
+ padding-inline-start: 0;
8928
+ }
8929
+
8930
+ .timeline-dates-start > li > * {
8931
+ grid-column: 3;
8932
+ }
8933
+
8934
+ /* Row 1, so the dateline sits beside the title rather than above it, and
8935
+ end-aligned, so ragged datelines hug the rail. */
8936
+ .timeline-dates-start > li > time {
8937
+ grid-row: 1;
8938
+ grid-column: 1;
8939
+ text-align: end;
8940
+ }
8941
+
8942
+ .timeline-dates-start > li::before,
8943
+ .timeline-dates-start > li::after,
8944
+ .timeline-dates-start > li > :is(.avatar, [aria-hidden="true"]):first-child {
8945
+ grid-column: 2;
8946
+ }
8947
+ }
8948
+
8876
8949
  .timeline > li::before {
8877
8950
  content: "";
8878
8951
  position: absolute;
@@ -10476,6 +10549,7 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
10476
10549
  * --meter-track
10477
10550
  * --meter-value
10478
10551
  * --bar-height
10552
+ * --bar-radius
10479
10553
  */
10480
10554
 
10481
10555
  .meter {
@@ -10488,7 +10562,7 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
10488
10562
  block-size: var(--bar-height);
10489
10563
  overflow: hidden;
10490
10564
  border: 0;
10491
- border-radius: var(--radius-full);
10565
+ border-radius: var(--bar-radius);
10492
10566
  background: var(--meter-track);
10493
10567
  }
10494
10568
 
@@ -10515,31 +10589,31 @@ a.list-item:is([aria-current="page"], [aria-current="true"])::before {
10515
10589
  -webkit-appearance: none;
10516
10590
  block-size: var(--bar-height);
10517
10591
  border: 0;
10518
- border-radius: var(--radius-full);
10592
+ border-radius: var(--bar-radius);
10519
10593
  background: var(--meter-track);
10520
10594
  }
10521
10595
 
10522
10596
  .meter::-webkit-meter-optimum-value {
10523
10597
  block-size: var(--bar-height);
10524
- border-radius: var(--radius-full);
10598
+ border-radius: var(--bar-radius);
10525
10599
  background: var(--success);
10526
10600
  }
10527
10601
 
10528
10602
  .meter::-webkit-meter-suboptimum-value {
10529
10603
  block-size: var(--bar-height);
10530
- border-radius: var(--radius-full);
10604
+ border-radius: var(--bar-radius);
10531
10605
  background: var(--warning);
10532
10606
  }
10533
10607
 
10534
10608
  .meter::-webkit-meter-even-less-good-value {
10535
10609
  block-size: var(--bar-height);
10536
- border-radius: var(--radius-full);
10610
+ border-radius: var(--bar-radius);
10537
10611
  background: var(--danger);
10538
10612
  }
10539
10613
 
10540
10614
  .meter::-moz-meter-bar {
10541
10615
  block-size: var(--bar-height);
10542
- border-radius: var(--radius-full);
10616
+ border-radius: var(--bar-radius);
10543
10617
  }
10544
10618
 
10545
10619
  /* The background shorthand clears Gecko's native gradient. Keep state