@domandigital/craft 0.24.3 → 0.25.0

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,5 +1,11 @@
1
1
  # @domandigital/craft
2
2
 
3
+ ## 0.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c31349e: The phone measure and the every-viewport sweep fail a sideways row (a carousel, a strip of chips or cards) that also scrolls up and down: `rowscroll`. Setting `overflow-x: auto` turns a visible `overflow-y` into `auto`, so a row whose items are a few pixels taller than the row takes the thumb's vertical swipe instead of the page.
8
+
3
9
  ## 0.24.3
4
10
 
5
11
  ### Patch Changes
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OQXTQQAU.js";
4
4
  import {
5
5
  parseFlags
6
- } from "./chunk-TQTTWANV.js";
6
+ } from "./chunk-ONNB34GE.js";
7
7
  import {
8
8
  toJson
9
9
  } from "./chunk-QIEDBL4J.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  describeTypicality,
7
7
  loadNull
8
- } from "./chunk-QP67OMYY.js";
8
+ } from "./chunk-54ECV5RI.js";
9
9
  import {
10
10
  SOURCE_FILE,
11
11
  finish,
@@ -14,7 +14,7 @@ import {
14
14
  parseFlags,
15
15
  prepareReport,
16
16
  readPaths
17
- } from "./chunk-TQTTWANV.js";
17
+ } from "./chunk-ONNB34GE.js";
18
18
  import {
19
19
  toJson
20
20
  } from "./chunk-QIEDBL4J.js";
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-O5O4P5TL.js";
8
8
  import {
9
9
  loadNull
10
- } from "./chunk-QP67OMYY.js";
10
+ } from "./chunk-54ECV5RI.js";
11
11
  import {
12
12
  parseFlags
13
- } from "./chunk-TQTTWANV.js";
13
+ } from "./chunk-ONNB34GE.js";
14
14
  import {
15
15
  toJson
16
16
  } from "./chunk-QIEDBL4J.js";
@@ -633,7 +633,7 @@ async function briefFor(flags, cwd) {
633
633
  if (typeof brief === "string" && brief.trim()) return brief;
634
634
  } else if (flags.direction) throw new Error(`no such file: ${flags.direction}`);
635
635
  if (flags.null) {
636
- const { loadNull } = await import("./cli-A7UFMLAV.js");
636
+ const { loadNull } = await import("./cli-NJD226N3.js");
637
637
  return loadNull(flags.null, cwd).brief;
638
638
  }
639
639
  return void 0;
@@ -659,37 +659,37 @@ async function compareWithCompetitor(flags, io) {
659
659
  function run(argv, io) {
660
660
  const [command, ...rest] = argv;
661
661
  if (command === "direction") {
662
- return import("./cli-CJJD5KCB.js").then((m) => m.runDirection(rest, io));
662
+ return import("./cli-63ZRSUPR.js").then((m) => m.runDirection(rest, io));
663
663
  }
664
664
  if (command === "report" || command === "retrofit") {
665
- return import("./cli-UKON4D6S.js").then((m) => m.runReport(command, rest, io));
665
+ return import("./cli-GQ5MEXZL.js").then((m) => m.runReport(command, rest, io));
666
666
  }
667
667
  if (command === "register") {
668
668
  return import("./cli-TDTCURZS.js").then((m) => m.runRegister(rest, io));
669
669
  }
670
670
  if (command === "estate") {
671
- return import("./cli-YVBNA2TT.js").then((m) => m.runEstate(rest, io));
671
+ return import("./cli-MUKUPURX.js").then((m) => m.runEstate(rest, io));
672
672
  }
673
673
  if (command === "null") {
674
- return import("./cli-A7UFMLAV.js").then((m) => m.runNull(rest, io));
674
+ return import("./cli-NJD226N3.js").then((m) => m.runNull(rest, io));
675
675
  }
676
676
  if (command === "calibrate") {
677
- return import("./cli-QA4LXX6L.js").then((m) => m.runCalibrate(rest, io));
677
+ return import("./cli-YLMEHBMN.js").then((m) => m.runCalibrate(rest, io));
678
678
  }
679
679
  if (command === "tells" && rest[0] === "harvest") {
680
- return import("./cli-A7UFMLAV.js").then((m) => m.runHarvest(rest, io)).catch((error) => {
680
+ return import("./cli-NJD226N3.js").then((m) => m.runHarvest(rest, io)).catch((error) => {
681
681
  io.err(`craft: ${error.message}`);
682
682
  return 2;
683
683
  });
684
684
  }
685
685
  if (command === "phone-first") {
686
- return import("./cli-2OWOJNIX.js").then((m) => m.runPhoneFirst(rest, io));
686
+ return import("./cli-WIWWPNBM.js").then((m) => m.runPhoneFirst(rest, io));
687
687
  }
688
688
  if (command === "viewports") {
689
- return import("./viewports-cli-5UMLK7I7.js").then((m) => m.runViewports(rest, io));
689
+ return import("./viewports-cli-VC4PK4GX.js").then((m) => m.runViewports(rest, io));
690
690
  }
691
691
  if (command === "snapshot" || command === "audit") {
692
- return import("./cli-ZIFKW5FO.js").then((m) => m.runAudit(command, rest, io));
692
+ return import("./cli-IAK6547B.js").then((m) => m.runAudit(command, rest, io));
693
693
  }
694
694
  if (!command || command === "help" || command === "--help" || command === "-h") {
695
695
  io.out(HELP);
@@ -148,7 +148,8 @@ var LABEL = {
148
148
  autocomplete: "field the phone cannot fill in",
149
149
  tel: "phone number is not a link",
150
150
  linelength: "line too long",
151
- screens: "page too long for a phone"
151
+ screens: "page too long for a phone",
152
+ rowscroll: "sideways row scrolls up and down"
152
153
  };
153
154
  function writeBaseline(findings, routes, note, previous) {
154
155
  const byFile = tally(findings, (f) => f.file);
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-O5O4P5TL.js";
23
23
  import {
24
24
  parseFlags
25
- } from "./chunk-TQTTWANV.js";
25
+ } from "./chunk-ONNB34GE.js";
26
26
  import {
27
27
  toJson
28
28
  } from "./chunk-QIEDBL4J.js";
@@ -3,21 +3,21 @@ import {
3
3
  } from "./chunk-OKVHWXYV.js";
4
4
  import {
5
5
  merge
6
- } from "./chunk-T2BTEWW6.js";
6
+ } from "./chunk-AG5KWCDT.js";
7
7
  import "./chunk-5UFG75N4.js";
8
8
  import "./chunk-JYNXGCYZ.js";
9
9
  import {
10
10
  SIBLING_AT,
11
11
  compareToEstate,
12
12
  loadEstate
13
- } from "./chunk-BYSFLGK2.js";
13
+ } from "./chunk-GZQG76PU.js";
14
14
  import {
15
15
  PAGE_TYPES,
16
16
  validateDirection
17
17
  } from "./chunk-O5O4P5TL.js";
18
18
  import {
19
19
  loadNull
20
- } from "./chunk-QP67OMYY.js";
20
+ } from "./chunk-54ECV5RI.js";
21
21
  import "./chunk-OQXTQQAU.js";
22
22
  import {
23
23
  COPY_FILE,
@@ -28,7 +28,7 @@ import {
28
28
  loadExceptions,
29
29
  parseFlags,
30
30
  readPaths
31
- } from "./chunk-TQTTWANV.js";
31
+ } from "./chunk-ONNB34GE.js";
32
32
  import {
33
33
  toJson
34
34
  } from "./chunk-QIEDBL4J.js";
@@ -4,12 +4,12 @@ import {
4
4
  merge,
5
5
  resolvePages,
6
6
  runAudit
7
- } from "./chunk-T2BTEWW6.js";
7
+ } from "./chunk-AG5KWCDT.js";
8
8
  import "./chunk-5UFG75N4.js";
9
9
  import "./chunk-JYNXGCYZ.js";
10
- import "./chunk-QP67OMYY.js";
10
+ import "./chunk-54ECV5RI.js";
11
11
  import "./chunk-OQXTQQAU.js";
12
- import "./chunk-TQTTWANV.js";
12
+ import "./chunk-ONNB34GE.js";
13
13
  import "./chunk-QIEDBL4J.js";
14
14
  import "./chunk-WUACK2HX.js";
15
15
  import "./chunk-LYQKEC7Q.js";
@@ -4,11 +4,11 @@ import {
4
4
  formatPairs,
5
5
  loadEstate,
6
6
  runEstate
7
- } from "./chunk-BYSFLGK2.js";
7
+ } from "./chunk-GZQG76PU.js";
8
8
  import "./chunk-O5O4P5TL.js";
9
- import "./chunk-QP67OMYY.js";
9
+ import "./chunk-54ECV5RI.js";
10
10
  import "./chunk-OQXTQQAU.js";
11
- import "./chunk-TQTTWANV.js";
11
+ import "./chunk-ONNB34GE.js";
12
12
  import "./chunk-QIEDBL4J.js";
13
13
  import "./chunk-WUACK2HX.js";
14
14
  import "./chunk-LYQKEC7Q.js";
@@ -9,9 +9,9 @@ import {
9
9
  runHarvest,
10
10
  runNull,
11
11
  serveDir
12
- } from "./chunk-QP67OMYY.js";
12
+ } from "./chunk-54ECV5RI.js";
13
13
  import "./chunk-OQXTQQAU.js";
14
- import "./chunk-TQTTWANV.js";
14
+ import "./chunk-ONNB34GE.js";
15
15
  import "./chunk-QIEDBL4J.js";
16
16
  import "./chunk-WUACK2HX.js";
17
17
  import "./chunk-LYQKEC7Q.js";
@@ -12,11 +12,11 @@ import {
12
12
  routesFromPages,
13
13
  scanPhoneFirst,
14
14
  writeBaseline
15
- } from "./chunk-XSKLVEI6.js";
15
+ } from "./chunk-XWQICMXA.js";
16
16
  import {
17
17
  SOURCE_FILE,
18
18
  readPaths
19
- } from "./chunk-TQTTWANV.js";
19
+ } from "./chunk-ONNB34GE.js";
20
20
  import {
21
21
  toJson
22
22
  } from "./chunk-QIEDBL4J.js";
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  expandNullTargets,
6
6
  loadNull
7
- } from "./chunk-QP67OMYY.js";
7
+ } from "./chunk-54ECV5RI.js";
8
8
  import "./chunk-OQXTQQAU.js";
9
9
  import {
10
10
  parseFlags
11
- } from "./chunk-TQTTWANV.js";
11
+ } from "./chunk-ONNB34GE.js";
12
12
  import {
13
13
  toJson
14
14
  } from "./chunk-QIEDBL4J.js";
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-TQTTWANV.js";
4
+ } from "./chunk-ONNB34GE.js";
5
5
  import "./chunk-QIEDBL4J.js";
6
6
  import "./chunk-LYQKEC7Q.js";
7
7
  import "./chunk-HUXYBZYR.js";
package/dist/phone.cjs CHANGED
@@ -105,6 +105,13 @@ function measurePhoneInPage(floors) {
105
105
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
106
106
  out.push({ check: "scroll", element: "<html>", detail: `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}` });
107
107
  }
108
+ for (const e of on("rowscroll") ? Array.from(document.body.querySelectorAll("*")) : []) {
109
+ if (!shown(e) || quiet(e)) continue;
110
+ const s = getComputedStyle(e);
111
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
112
+ const spare = e.scrollHeight - e.clientHeight;
113
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) out.push({ check: "rowscroll", element: describe(e), detail: `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows` });
114
+ }
108
115
  const inline = (e) => {
109
116
  if (e.tagName !== "A" || getComputedStyle(e).display !== "inline") return false;
110
117
  const block = e.parentElement?.closest("p, li, dd, td, th, blockquote, figcaption, address");
@@ -281,6 +288,13 @@ function measureViewportInPage(arg) {
281
288
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
282
289
  add("scroll", "<html>", `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}`);
283
290
  }
291
+ for (const e of Array.from(document.body.querySelectorAll("*"))) {
292
+ if (!shown(e) || hiddenByMarkup(e)) continue;
293
+ const s = getComputedStyle(e);
294
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
295
+ const spare = e.scrollHeight - e.clientHeight;
296
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) add("rowscroll", describe(e), `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows`);
297
+ }
284
298
  const boxes = textBoxes().sort((a, b) => a.t - b.t);
285
299
  const seen = /* @__PURE__ */ new Set();
286
300
  for (let i = 0; i < boxes.length && seen.size < 15; i++) {
@@ -584,7 +598,8 @@ var LABEL = {
584
598
  autocomplete: "field the phone cannot fill in",
585
599
  tel: "phone number is not a link",
586
600
  linelength: "line too long",
587
- screens: "page too long for a phone"
601
+ screens: "page too long for a phone",
602
+ rowscroll: "sideways row scrolls up and down"
588
603
  };
589
604
  function writeBaseline(findings, routes, note, previous) {
590
605
  const byFile = tally(findings, (f) => f.file);
package/dist/phone.d.cts CHANGED
@@ -28,7 +28,13 @@ interface PhoneFloors {
28
28
  * What a measure can find. The first five are the 375px floors (DOM-775); the
29
29
  * rest are the every-viewport and phone-optimisation checks (DOM-787).
30
30
  */
31
- type PhoneCheck = "scroll" | "target" | "field" | "text" | "title" | "overlap" | "action" | "layers" | "landscape" | "image" | "input" | "autocomplete" | "tel" | "linelength" | "screens";
31
+ type PhoneCheck = "scroll" | "target" | "field" | "text" | "title" | "overlap" | "action" | "layers" | "landscape" | "image" | "input" | "autocomplete" | "tel" | "linelength" | "screens" | "rowscroll";
32
+ /**
33
+ * A sideways row (a carousel, a strip of chips or cards) that also scrolls up and down. Setting overflow-x to auto
34
+ * makes a visible overflow-y compute to auto too, so a row whose items are a few pixels taller than the row (a focus
35
+ * ring, a shadow, a descender) takes the thumb's vertical swipe instead of the page (DOM-18589, the founder's ask of
36
+ * 23 November 2026). Self-contained, like the measures that call it, so it can be pasted into both.
37
+ */
32
38
  interface RawPhoneFinding {
33
39
  check: PhoneCheck;
34
40
  /** `<tag> "text"`: what a person looks for on the page. */
@@ -311,8 +317,9 @@ declare function mergeViewportFindings(perViewport: {
311
317
  * page to settle and scrolled to the top; the function judges the page as it
312
318
  * stands, for whichever groups of checks it is asked for:
313
319
  *
314
- * - `sweep`: at any width, the page does not scroll sideways, no visible text
315
- * sits on other visible text, and no page title is cut off.
320
+ * - `sweep`: at any width, the page does not scroll sideways, no sideways row
321
+ * also scrolls up and down, no visible text sits on other visible text, and
322
+ * no page title is cut off.
316
323
  * - `optimise`: on the short phone (375 x 667), the main action is on the
317
324
  * first screen or pinned, fixed and sticky layers leave the screen to the
318
325
  * page, images are sized for the phone, fields use the right keyboard and
package/dist/phone.d.ts CHANGED
@@ -28,7 +28,13 @@ interface PhoneFloors {
28
28
  * What a measure can find. The first five are the 375px floors (DOM-775); the
29
29
  * rest are the every-viewport and phone-optimisation checks (DOM-787).
30
30
  */
31
- type PhoneCheck = "scroll" | "target" | "field" | "text" | "title" | "overlap" | "action" | "layers" | "landscape" | "image" | "input" | "autocomplete" | "tel" | "linelength" | "screens";
31
+ type PhoneCheck = "scroll" | "target" | "field" | "text" | "title" | "overlap" | "action" | "layers" | "landscape" | "image" | "input" | "autocomplete" | "tel" | "linelength" | "screens" | "rowscroll";
32
+ /**
33
+ * A sideways row (a carousel, a strip of chips or cards) that also scrolls up and down. Setting overflow-x to auto
34
+ * makes a visible overflow-y compute to auto too, so a row whose items are a few pixels taller than the row (a focus
35
+ * ring, a shadow, a descender) takes the thumb's vertical swipe instead of the page (DOM-18589, the founder's ask of
36
+ * 23 November 2026). Self-contained, like the measures that call it, so it can be pasted into both.
37
+ */
32
38
  interface RawPhoneFinding {
33
39
  check: PhoneCheck;
34
40
  /** `<tag> "text"`: what a person looks for on the page. */
@@ -311,8 +317,9 @@ declare function mergeViewportFindings(perViewport: {
311
317
  * page to settle and scrolled to the top; the function judges the page as it
312
318
  * stands, for whichever groups of checks it is asked for:
313
319
  *
314
- * - `sweep`: at any width, the page does not scroll sideways, no visible text
315
- * sits on other visible text, and no page title is cut off.
320
+ * - `sweep`: at any width, the page does not scroll sideways, no sideways row
321
+ * also scrolls up and down, no visible text sits on other visible text, and
322
+ * no page title is cut off.
316
323
  * - `optimise`: on the short phone (375 x 667), the main action is on the
317
324
  * first screen or pinned, fixed and sticky layers leave the screen to the
318
325
  * page, images are sized for the phone, fields use the right keyboard and
package/dist/phone.js CHANGED
@@ -40,6 +40,13 @@ function measurePhoneInPage(floors) {
40
40
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
41
41
  out.push({ check: "scroll", element: "<html>", detail: `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}` });
42
42
  }
43
+ for (const e of on("rowscroll") ? Array.from(document.body.querySelectorAll("*")) : []) {
44
+ if (!shown(e) || quiet(e)) continue;
45
+ const s = getComputedStyle(e);
46
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
47
+ const spare = e.scrollHeight - e.clientHeight;
48
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) out.push({ check: "rowscroll", element: describe(e), detail: `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows` });
49
+ }
43
50
  const inline = (e) => {
44
51
  if (e.tagName !== "A" || getComputedStyle(e).display !== "inline") return false;
45
52
  const block = e.parentElement?.closest("p, li, dd, td, th, blockquote, figcaption, address");
@@ -216,6 +223,13 @@ function measureViewportInPage(arg) {
216
223
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
217
224
  add("scroll", "<html>", `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}`);
218
225
  }
226
+ for (const e of Array.from(document.body.querySelectorAll("*"))) {
227
+ if (!shown(e) || hiddenByMarkup(e)) continue;
228
+ const s = getComputedStyle(e);
229
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
230
+ const spare = e.scrollHeight - e.clientHeight;
231
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) add("rowscroll", describe(e), `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows`);
232
+ }
219
233
  const boxes = textBoxes().sort((a, b) => a.t - b.t);
220
234
  const seen = /* @__PURE__ */ new Set();
221
235
  for (let i = 0; i < boxes.length && seen.size < 15; i++) {
@@ -519,7 +533,8 @@ var LABEL = {
519
533
  autocomplete: "field the phone cannot fill in",
520
534
  tel: "phone number is not a link",
521
535
  linelength: "line too long",
522
- screens: "page too long for a phone"
536
+ screens: "page too long for a phone",
537
+ rowscroll: "sideways row scrolls up and down"
523
538
  };
524
539
  function writeBaseline(findings, routes, note, previous) {
525
540
  const byFile = tally(findings, (f) => f.file);
@@ -13,7 +13,7 @@ import {
13
13
  screenBudgetFor,
14
14
  sweepWidths,
15
15
  writeBaseline
16
- } from "./chunk-XSKLVEI6.js";
16
+ } from "./chunk-XWQICMXA.js";
17
17
  import {
18
18
  loadPlaywright
19
19
  } from "./chunk-5UFG75N4.js";
@@ -71,6 +71,13 @@ function measurePhoneInPage(floors) {
71
71
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
72
72
  out.push({ check: "scroll", element: "<html>", detail: `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}` });
73
73
  }
74
+ for (const e of on("rowscroll") ? Array.from(document.body.querySelectorAll("*")) : []) {
75
+ if (!shown(e) || quiet(e)) continue;
76
+ const s = getComputedStyle(e);
77
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
78
+ const spare = e.scrollHeight - e.clientHeight;
79
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) out.push({ check: "rowscroll", element: describe(e), detail: `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows` });
80
+ }
74
81
  const inline = (e) => {
75
82
  if (e.tagName !== "A" || getComputedStyle(e).display !== "inline") return false;
76
83
  const block = e.parentElement?.closest("p, li, dd, td, th, blockquote, figcaption, address");
@@ -247,6 +254,13 @@ function measureViewportInPage(arg) {
247
254
  const wide = Array.from(document.body.querySelectorAll("*")).filter((e) => shown(e) && e.getBoundingClientRect().right > vw + 1).filter((e, _, all) => !all.some((o) => o !== e && o.contains(e))).slice(0, 3).map(describe);
248
255
  add("scroll", "<html>", `the page is ${document.documentElement.scrollWidth}px wide at ${vw}px${wide.length ? `; widest: ${wide.join(", ")}` : ""}`);
249
256
  }
257
+ for (const e of Array.from(document.body.querySelectorAll("*"))) {
258
+ if (!shown(e) || hiddenByMarkup(e)) continue;
259
+ const s = getComputedStyle(e);
260
+ const sideways = ["auto", "scroll"].includes(s.overflowX) && e.scrollWidth > e.clientWidth + 1;
261
+ const spare = e.scrollHeight - e.clientHeight;
262
+ if (sideways && ["auto", "scroll"].includes(s.overflowY) && spare > 1) add("rowscroll", describe(e), `a sideways row that also scrolls ${spare}px up and down. Set overflow-y: hidden (or clip) on it, and pad the row for its items' focus rings and shadows`);
263
+ }
250
264
  const boxes = textBoxes().sort((a, b) => a.t - b.t);
251
265
  const seen = /* @__PURE__ */ new Set();
252
266
  for (let i = 0; i < boxes.length && seen.size < 15; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domandigital/craft",
3
- "version": "0.24.3",
3
+ "version": "0.25.0",
4
4
  "private": false,
5
5
  "description": "The Doman Digital house craft standard as numbers: OKLCh colour ramps that snap to existing anchors, derived semantic tokens with measured WCAG and APCA contrast, one shared motion vocabulary for CSS and JS, and a base stylesheet. Zero dependencies.",
6
6
  "license": "Apache-2.0",