Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(rtl): enforce native touch target dimensions and remove centering exemption

nynexman44640472c4e07633
diff --git a/.github/scripts/rtl-audit-coarse-hit.browser.test.mjs b/.github/scripts/rtl-audit-coarse-hit.browser.test.mjs
new file mode 100644
index 0000000000..6b146f4c29
--- /dev/null
+++ b/.github/scripts/rtl-audit-coarse-hit.browser.test.mjs
@@ -0,0 +1,193 @@
+// Copyright (c) Meta Platforms, Inc. and affiliates.
+
+/**
+ * @file Browser regression proof for D7 native target size and alignment.
+ * @input ASTRYX_RTL_BROWSER=1 and installed Chromium; a minimal static story fixture.
+ * @output The real RTL CLI passes conforming inputs and rejects independent
+ * width, height, centering, hit-test, and missing-contract mutations.
+ * @position Runs in the existing RTL browser lane, not cold-clone unit tests.
+ */
+
+import {spawnSync} from 'node:child_process';
+import fs from 'node:fs';
+import os from 'node:os';
+import path from 'node:path';
+import {fileURLToPath} from 'node:url';
+import {describe, expect, it} from 'vitest';
+
+const ROOT = path.resolve(
+ path.dirname(fileURLToPath(import.meta.url)),
+ '../..',
+);
+const COMPONENTS = ['CheckboxInput', 'RadioList', 'Switch'];
+const SCRIPT =
+ process.env.ASTRYX_RTL_AUDIT_SCRIPT ??
+ path.join(ROOT, 'apps/storybook/rtl-audit/rtl-audit.mjs');
+
+function auditFixture({
+ width = 24,
+ height = 24,
+ offset = 0,
+ blocked = false,
+ minimumTargetSize = {width: 24, height: 24},
+} = {}) {
+ const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'rtl-coarse-hit-'));
+ const targets = COMPONENTS.map(component => ({
+ component,
+ storyId: `core-${component.toLowerCase()}--coarse-fixture`,
+ dims: ['D7'],
+ sizes: ['sm', 'md'],
+ minimumTargetSize,
+ selectors: {inputSelector: 'input', wrapperSelector: '[data-wrapper]'},
+ }));
+ const write = (name, content) =>
+ fs.writeFileSync(path.join(dir, name), content);
+ write(
+ 'index.json',
+ JSON.stringify({
+ entries: Object.fromEntries(
+ targets.map(target => [
+ target.storyId,
+ {
+ id: target.storyId,
+ title: `Core/${target.component}`,
+ type: 'story',
+ },
+ ]),
+ ),
+ }),
+ );
+ write('targets.json', JSON.stringify(targets));
+ write('verified-na.json', '[]');
+ // A large visible wrapper must never substitute for the native input's box.
+ write(
+ 'iframe.html',
+ `<!doctype html><html><body>
+ <div id="storybook-root"><span data-wrapper style="display:block;position:relative;width:64px;height:64px;margin:64px;background:#ddd">
+ <input aria-label="Choice" style="appearance:none;position:absolute;box-sizing:border-box;margin:0;padding:0;border:0;left:calc(50% + ${offset}px);top:50%;transform:translate(-50%,-50%);width:${width}px;height:${height}px">
+ ${blocked ? '<span style="position:absolute;inset:0"></span>' : ''}
+ </span></div>
+ <script>
+ const params = new URLSearchParams(location.search);
+ document.documentElement.dir = params.get('globals')?.includes('direction:rtl') ? 'rtl' : 'ltr';
+ document.querySelector('input').type = params.get('id').includes('radiolist') ? 'radio' : 'checkbox';
+ </script>
+ </body></html>`,
+ );
+ try {
+ const result = spawnSync(
+ process.execPath,
+ [
+ SCRIPT,
+ '--storybook-dir',
+ dir,
+ '--targets',
+ path.join(dir, 'targets.json'),
+ '--verified-not-applicable',
+ path.join(dir, 'verified-na.json'),
+ '--output',
+ path.join(dir, 'report.json'),
+ '--curated-only',
+ '--packages',
+ 'core',
+ '--filter',
+ COMPONENTS.join(','),
+ ],
+ {encoding: 'utf8', timeout: 30_000},
+ );
+ expect(result.error, result.stderr).toBeUndefined();
+ const report = JSON.parse(
+ fs.readFileSync(path.join(dir, 'report.json'), 'utf8'),
+ );
+ expect(report.curated.results).toHaveLength(COMPONENTS.length);
+ return {status: result.status, cards: report.curated.results};
+ } finally {
+ fs.rmSync(dir, {recursive: true, force: true});
+ }
+}
+
+// Chromium is installed by pr-rtl; pnpm test must still work without a browser.
+describe.runIf(process.env.ASTRYX_RTL_BROWSER === '1')(
+ 'D7 native coarse target (INV9/INV10, DR8/DR12)',
+ () => {
+ it('passes the exact minimum in LTR/RTL at sm/md', () => {
+ const {status, cards} = auditFixture();
+ expect(status).toBe(0);
+ for (const card of cards) {
+ expect(card.dims.D7).toBe('pass');
+ expect(
+ card.coarseHits.results.map(({size, rtl}) => [size, rtl]),
+ ).toEqual([
+ ['sm', false],
+ ['sm', true],
+ ['md', false],
+ ['md', true],
+ ]);
+ for (const result of card.coarseHits.results) {
+ expect(result).toMatchObject({
+ coarse: true,
+ count: 1,
+ allHitsOk: true,
+ });
+ expect(result.touchPoints).toBeGreaterThan(0);
+ expect(result.centers[0]).toMatchObject({
+ native: {width: 24, height: 24},
+ wrapper: {width: 64, height: 64},
+ });
+ }
+ }
+ });
+
+ it.each([
+ {width: 23, height: 24},
+ {width: 24, height: 23},
+ {width: 20, height: 20},
+ ])(
+ 'rejects a centered, hittable $width x $height native input',
+ dimensions => {
+ const {status, cards} = auditFixture(dimensions);
+ expect(status).toBe(1);
+ for (const card of cards) {
+ expect(card.dims.D7).toBe('fail');
+ for (const result of card.coarseHits.results) {
+ expect(result.centers[0]).toMatchObject({
+ hit: true,
+ centered: true,
+ meetsMinimum: false,
+ });
+ expect(result.centers[0].native).toMatchObject(dimensions);
+ }
+ expect(card.notes.join('\n')).toContain('minimum 24x24');
+ }
+ },
+ );
+
+ it.each([{offset: 3}, {blocked: true}])(
+ 'keeps center and hit-test enforcement for %j',
+ mutation => {
+ const {status, cards} = auditFixture(mutation);
+ expect(status).toBe(1);
+ for (const card of cards) {
+ expect(card.dims.D7).toBe('fail');
+ const target = card.coarseHits.results[0].centers[0];
+ expect(target.meetsMinimum).toBe(true);
+ expect(mutation.blocked ? target.hit : target.centered).toBe(false);
+ }
+ },
+ );
+
+ it.each([null, {width: 0, height: 24}, {width: 24}])(
+ 'fails closed on an invalid minimum %j',
+ minimumTargetSize => {
+ const {status, cards} = auditFixture({minimumTargetSize});
+ expect(status).toBe(1);
+ for (const card of cards) {
+ expect(card.dims.D7).toBe('ERROR');
+ expect(card.notes.join('\n')).toContain(
+ 'requires positive minimumTargetSize',
+ );
+ }
+ },
+ );
+ },
+);
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4c4cefaab5..7557f09c69 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2388,6 +2388,12 @@ jobs:
- name: Install Playwright
run: pnpm install --frozen-lockfile && npx playwright install chromium
+ - name: Verify D7 native target regression
+ if: matrix.package == 'core' && matrix.part == 1
+ env:
+ ASTRYX_RTL_BROWSER: '1'
+ run: pnpm exec vitest run --project node .github/scripts/rtl-audit-coarse-hit.browser.test.mjs --maxWorkers=1
+
# A registry/classifier mutation runs the full audit from the PR checkout,
# while eligibility itself came from trusted base policy. Scope resolution
# is strict: malformed or missing analysis fails before the soft findings
diff --git a/apps/storybook/rtl-audit/README.md b/apps/storybook/rtl-audit/README.md
index 73669d9762..e486b1305a 100644
--- a/apps/storybook/rtl-audit/README.md
+++ b/apps/storybook/rtl-audit/README.md
@@ -220,8 +220,13 @@ hand-written selectors, run **in addition** to auto-discovery:
- **D3 behavior-flip** — directional behavior inverts, e.g. Carousel's scroll
axis: "next" makes `scrollLeft` go positive in LTR and negative in RTL.
- **D4 overlay-side** — a positioned affordance flips side (`boundingBox`).
-- **D7 coarse hit alignment** — each configured native input remains centered
- under its visible coarse-pointer wrapper and receives a center-point hit.
+- **D7 coarse native size/alignment** — each configured native input remains
+ centered under its visible coarse-pointer wrapper, receives a center-point
+ hit, and meets both dimensions of the target's `minimumTargetSize` in LTR/RTL
+ at every configured size. The minimum belongs to the component/composition,
+ not a universal audit default; missing or invalid dimensions are errors.
+ Reports retain native and wrapper boxes separately so a large wrapper cannot
+ conceal an undersized input.
- **D8 logical inline-edge mirror** — one configured, visible, non-zero subject
carries an intentionally asymmetric logical start/end padding pair whose
logical values stay stable while the resolved physical inline-axis sides swap
@@ -322,6 +327,13 @@ pnpm rtl:audit -- --auto-only
pnpm rtl:audit -- --curated-only
```
+For the D7 gate's native-width, native-height, alignment, hit-testing, and
+minimum-contract mutations (Chromium required):
+
+```bash
+ASTRYX_RTL_BROWSER=1 pnpm exec vitest run --project node .github/scripts/rtl-audit-coarse-hit.browser.test.mjs --maxWorkers=1
+```
+
Exit code is non-zero if auto-discovery finds a not-RTL component, a curated
dimension fails, the applicability registry is invalid, or a full-mode run has
a coverage gap or stale verified-N/A declaration. CI remains soft-gated (see
diff --git a/apps/storybook/rtl-audit/rtl-audit.mjs b/apps/storybook/rtl-audit/rtl-audit.mjs
index 2d8ebdaafd..0e90a3a06a 100644
--- a/apps/storybook/rtl-audit/rtl-audit.mjs
+++ b/apps/storybook/rtl-audit/rtl-audit.mjs
@@ -19,7 +19,7 @@
* - D6 (directional-decoration): single-glyph, aria-hidden decorations
* in repeated-item or between-sibling contexts mirror exactly once.
* (B) CURATED PRECISION — targets.json entries add D2 (order-flip),
- * D3 (behavior-flip), D4 (overlay-side), D7 (coarse hit alignment),
+ * D3 (behavior-flip), D4 (overlay-side), D7 (coarse native size/alignment),
* D8 (logical inline-edge mirroring), and D9 (logical grouped corners):
* the geometry/behavior dims that genuinely need hand-written selectors.
* (C) APPLICABILITY: every component is measured, explicitly verified N/A,
@@ -810,6 +810,12 @@ async function checkD4(page, port, t, card) {
async function checkD7CoarseHit(page, port, t, card) {
const wrapperSel = t.selectors?.wrapperSelector;
const sizes = t.sizes || ['md'];
+ const minimumTargetSize = t.minimumTargetSize;
+ if (!['width', 'height'].every(axis =>
+ Number.isFinite(minimumTargetSize?.[axis]) && minimumTargetSize[axis] > 0,
+ )) {
+ throw new Error('D7 requires positive minimumTargetSize width and height from the owning target contract');
+ }
const testDir = async (rtl, size) => {
const inputSel = t.selectors?.inputSelectorBySize?.[size] ||
@@ -818,7 +824,7 @@ async function checkD7CoarseHit(page, port, t, card) {
await settle(page);
await doSetup(page, t);
- return page.evaluate(({inputSel, wrapperSel, size, rtl}) => {
+ return page.evaluate(({inputSel, wrapperSel, size, rtl, minimumTargetSize}) => {
const coarse = window.matchMedia('(pointer: coarse)').matches;
const touchPoints = navigator.maxTouchPoints;
const inputs = Array.from(document.querySelectorAll(inputSel));
@@ -839,16 +845,20 @@ async function checkD7CoarseHit(page, port, t, card) {
const isHit = hit === input || input.contains(hit);
const isCentered = Math.abs(inputBox.x + inputBox.width / 2 - cx) < 0.5 &&
Math.abs(inputBox.y + inputBox.height / 2 - cy) < 0.5;
- if (!isHit || !isCentered) allHitsOk = false;
+ const meetsMinimum = inputBox.width >= minimumTargetSize.width &&
+ inputBox.height >= minimumTargetSize.height;
+ if (!isHit || !isCentered || !meetsMinimum) allHitsOk = false;
centers.push({
wrapper: {x: b.x, y: b.y, width: b.width, height: b.height},
+ native: {x: inputBox.x, y: inputBox.y, width: inputBox.width, height: inputBox.height},
hit: isHit,
centered: isCentered,
+ meetsMinimum,
});
count++;
}
return {coarse, touchPoints, size, rtl, count, allHitsOk, centers};
- }, {inputSel, wrapperSel, size, rtl}).catch(() => null);
+ }, {inputSel, wrapperSel, size, rtl, minimumTargetSize}).catch(() => null);
};
const results = [];
@@ -863,15 +873,16 @@ async function checkD7CoarseHit(page, port, t, card) {
return;
}
+ card.coarseHits = {minimumTargetSize, results};
const pass = results.every(result => result.allHitsOk);
card.dims.D7 = pass ? 'pass' : 'fail';
const formatTarget = target => {
const {width, height} = target.wrapper;
const cx = target.wrapper.x + width / 2;
const cy = target.wrapper.y + height / 2;
- return `${width}x${height}@(${cx.toFixed(0)},${cy.toFixed(0)})->${target.hit && target.centered ? 'HIT' : 'MISS'}`;
+ return `wrapper ${width}x${height}@(${cx.toFixed(0)},${cy.toFixed(0)}) native ${target.native.width}x${target.native.height} hit=${target.hit} centered=${target.centered} size=${target.meetsMinimum}`;
};
- card.notes.push(`D7 coarse hit-target center: ${results.map(result => `${result.rtl ? 'RTL' : 'LTR'} ${result.size}:${result.centers.map(formatTarget).join(',')}`).join('; ')}`);
+ card.notes.push(`D7 coarse native target (minimum ${minimumTargetSize.width}x${minimumTargetSize.height}): ${results.map(result => `${result.rtl ? 'RTL' : 'LTR'} ${result.size}:${result.centers.map(formatTarget).join(',')}`).join('; ')}`);
}
async function measureLogicalInlineSubject(page, subject) {
diff --git a/apps/storybook/rtl-audit/targets.json b/apps/storybook/rtl-audit/targets.json
index 63e574f37e..f40745d160 100644
--- a/apps/storybook/rtl-audit/targets.json
+++ b/apps/storybook/rtl-audit/targets.json
@@ -59,6 +59,7 @@
"component": "CheckboxInput",
"storyId": "core-checkboxinput--size-comparison",
"dims": ["D7"],
+ "minimumTargetSize": {"width": 24, "height": 24},
"sizes": ["sm", "md"],
"selectors": {
"inputSelectorBySize": {
@@ -104,6 +105,7 @@
"component": "RadioList",
"storyId": "core-radiolist--rich-content",
"dims": ["D2", "D7"],
+ "minimumTargetSize": {"width": 24, "height": 24},
"sizes": ["sm", "md"],
"selectors": {
"prev": "input[aria-label=\"Pro\"]",
@@ -124,6 +126,7 @@
"component": "Switch",
"storyId": "core-switch--default",
"dims": ["D7"],
+ "minimumTargetSize": {"width": 24, "height": 24},
"sizes": ["sm", "md"],
"selectors": {
"inputSelector": "input[type=\"checkbox\"]"
diff --git a/docs/architecture/rtl-audit-evidence.md b/docs/architecture/rtl-audit-evidence.md
index 3770f4c7f3..b07fc72aef 100644
--- a/docs/architecture/rtl-audit-evidence.md
+++ b/docs/architecture/rtl-audit-evidence.md
@@ -25,6 +25,7 @@ applies_to:
]
verified_by:
[
+ .github/scripts/rtl-audit-coarse-hit.browser.test.mjs,
.github/scripts/rtl-audit-coverage.test.mjs,
.github/scripts/weekly-rtl-summary.test.mjs,
.github/scripts/rtl-join.test.mjs,
@@ -68,7 +69,7 @@ deciding_specs: []
| System behavior | Every component in the live roster is accounted for; available in-scope stories are rendered LTR and RTL. Results distinguish measured, verified N/A, coverage gap, and behavior failure. Lint and rendered audit prove different claims. |
| End-user impact | People reading RTL interfaces are protected by evidence that actually observed mirroring, ordering, placement, geometry, and behavior, rather than by a green report that measured nothing. |
| Builder impact | A new or changed component must either be measured by an applicable check or carry an explicit gap; behavior failures have no allowlist. Verified-N/A and pre-existing-debt admission await owner decisions (OQ1, OQ2). |
-| Compatibility/readiness | INV12–INV16 specify D1 fixture metadata and stable selection, not shipped enforcement. Component-wide N/A admission, historical debt, D7 size enforcement, and required-check rollout remain unresolved. |
+| Compatibility/readiness | INV12–INV16 specify D1 fixture metadata and stable selection, not shipped enforcement. Component-wide N/A admission, historical debt, and required-check rollout remain unresolved; D7 enforces each configured native target minimum. |
| Review checks | Reject lint standing in for rendered evidence (INV1); an allowlist that relabels a behavior failure (INV3); all-N/A credited as RTL-ready (INV4); a component dropping from the roster because its story moved (INV5); a new dimension without a red/green mutation receipt (INV9); a D1 exclusion on directional controls/cues or missing review-facing disclosure (INV12, INV16). |
| Governing rules | No deciding system spec; `architecture:knowledge-contracts` evidence-freshness and human-decision rules apply. |
@@ -164,8 +165,9 @@ Lint and rendered audit are complementary:
- **INV10 — Touch-target evidence includes size and alignment.** For a coarse-
pointer target, proving that the target center matches the visible control is
insufficient. Browser evidence MUST also measure the effective/native target
- against the owning component's stated minimum size. Current D7 enforcement
- checks centering and hit-testing only; size enforcement is an open gap.
+ against the owning component's stated minimum size. D7 enforces both native
+ dimensions alongside centering and hit-testing using each target's configured
+ minimum; it does not assign a universal minimum.
- **INV11 — Audit state is not product intent.** This architecture owns evidence
admission and freshness. The human meaning of correct bidirectional behavior
belongs in `design:bidirectionality`; component contracts own local semantics,
@@ -234,20 +236,21 @@ The audit's `D` identifiers name repository-specific checks, not an external
internationalization standard. Automatic discovery covers D1, D5, and D6; curated
story targets supply the other dimensions.
-| ID | Observed relationship |
-| --- | ---------------------------------------------------------------------------- |
-| D1 | Directional icons mirror or swap once. |
-| D2 | Previous/next controls exchange horizontal order. |
-| D3 | Directional interaction or scroll behavior follows the active direction. |
-| D4 | An overlay or positioned affordance follows its logical side. |
-| D5 | Positioned elements mirror relative to their parent. |
-| D6 | Contextual directional decorations receive exactly one bidi treatment. |
-| D7 | Coarse-pointer input centers and hit-testing align with the visible wrapper. |
-| D8 | Logical inline padding resolves to mirrored physical edges. |
-| D9 | Grouped corners follow the declared logical inline side. |
-
-D7's current check does not establish target-size conformance. INV10 owns the
-required evidence distinction; the component/composition contract owns the minimum.
+| ID | Observed relationship |
+| --- | ------------------------------------------------------------------------------------------------- |
+| D1 | Directional icons mirror or swap once. |
+| D2 | Previous/next controls exchange horizontal order. |
+| D3 | Directional interaction or scroll behavior follows the active direction. |
+| D4 | An overlay or positioned affordance follows its logical side. |
+| D5 | Positioned elements mirror relative to their parent. |
+| D6 | Contextual directional decorations receive exactly one bidi treatment. |
+| D7 | Coarse-pointer native input dimensions, centers, and hit-testing meet the owning target contract. |
+| D8 | Logical inline padding resolves to mirrored physical edges. |
+| D9 | Grouped corners follow the declared logical inline side. |
+
+D7 retains both the native input box and the visible wrapper box. Its
+`minimumTargetSize` width and height come from the curated target's owning
+component/composition contract; absent or invalid dimensions produce an error.
## Owning code
@@ -302,7 +305,7 @@ this record narrows the remaining decision to the options below.
| INV7 | PR workflow scope tests and weekly-summary tests | A changed component is skipped or full-roster debt is mistaken for PR-only evidence |
| INV8 | automatic/curated applicability tests | A newly applicable dimension leaves a verified-N/A declaration current |
| INV9 | red/green mutation receipts for each new dimension | A new dimension has only passing self-confirming tests |
-| INV10 | none for size today; D7 covers center/hit in LTR/RTL, sm/md | Removing the component's minimum native hit area remains green because D7 never checks size |
+| INV10 | native width/height mutation fixtures plus D7 center/hit checks in LTR/RTL, sm/md | An undersized native target stays green despite conforming wrapper geometry |
| INV12–INV16 | candidate fixture-policy tests and built Storybook mutations; not enforced by the base implementation | reordering the generated story index changes D1; malformed/missing metadata silently skips; a fixture opt-out skips D5/D6 or closes a component gap; an exclusion on directional controls/cues survives semantic review or is omitted from the summary |
### Implementation state
@@ -329,10 +332,6 @@ human review of an added or changed exemption.
### Current enforcement gaps
-- D7 measures hit-testing and center alignment in LTR/RTL at sm/md under a coarse
- pointer, but does not fail when the native target falls below the owning
- component's minimum size. Removing the coarse native-input expansion leaves
- that center/hit check passing. Size evidence must include the native input box.
- The reason-only verified-N/A registry becomes stale when an automatic/curated
dimension becomes applicable, but does not yet bind evidence to source/helper/
story bytes.
diff --git a/eslint.config.js b/eslint.config.js
index 5ce53ba8dc..e4c0e52754 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -344,22 +344,6 @@ export default defineConfig(
'@astryx/no-hardcoded-i18n-string': isStrictMode ? 'error' : 'warn',
},
},
- // Temporary relationship-only exemption for the three known coarse-pointer
- // centering defects. Every other no-physical-properties check remains active.
- // Remove this block when #5170 lands.
- {
- files: [
- 'packages/core/src/CheckboxInput/CheckboxInput.tsx',
- 'packages/core/src/RadioList/RadioListItem.tsx',
- 'packages/core/src/Switch/Switch.tsx',
- ],
- rules: {
- '@astryx/no-physical-properties': [
- 'error',
- {allowLogicalCentering: true},
- ],
- },
- },
// What a disabled control says to the pointer is a defect wherever it
// ships, so these two rules reach past core: lab components are consumed
// the same way, and lab is where the next core component comes from.
diff --git a/internal/eslint-plugin-astryx/no-physical-properties.js b/internal/eslint-plugin-astryx/no-physical-properties.js
index 8169ed6a4c..268ff72d5b 100644
--- a/internal/eslint-plugin-astryx/no-physical-properties.js
+++ b/internal/eslint-plugin-astryx/no-physical-properties.js
@@ -600,19 +600,9 @@ const rule = {
'`rtlStyles.centerInline(blockOffset)` for fixed centering, or write the ' +
'RTL transform as a plain negated length so the pair can be checked.',
},
- schema: [
- {
- type: 'object',
- properties: {
- allowLogicalCentering: {type: 'boolean'},
- },
- additionalProperties: false,
- },
- ],
+ schema: [],
},
create(context) {
- const allowLogicalCentering =
- context.options[0]?.allowLogicalCentering === true;
return {
Property(node) {
if (!isInsideStylexCreate(node)) return;
@@ -683,10 +673,7 @@ const rule = {
// RELATIONSHIP-BASED: a logical 50% anchor flips under RTL while a
// physical horizontal translation does not. Inspect matching nested
// media/state branches and accept an explicit opposite RTL transform.
- if (
- !allowLogicalCentering &&
- (propName === 'insetInlineStart' || propName === 'insetInlineEnd')
- ) {
+ if (propName === 'insetInlineStart' || propName === 'insetInlineEnd') {
const centering = uncompensatedLogicalCentering(node);
if (centering !== null) {
context.report({
diff --git a/internal/eslint-plugin-astryx/no-physical-properties.test.mjs b/internal/eslint-plugin-astryx/no-physical-properties.test.mjs
index b96856268d..8b8b6cb695 100644
--- a/internal/eslint-plugin-astryx/no-physical-properties.test.mjs
+++ b/internal/eslint-plugin-astryx/no-physical-properties.test.mjs
@@ -4,9 +4,13 @@
* @file no-physical-properties.test.mjs
*/
+import assert from 'node:assert/strict';
import {RuleTester} from 'eslint';
import rule from './no-physical-properties.js';
+// Relationship checks have no configuration escape hatch.
+assert.deepEqual(rule.meta.schema, []);
+
const ruleTester = new RuleTester({
languageOptions: {
ecmaVersion: 2022,
@@ -60,15 +64,6 @@ ruleTester.run('no-physical-properties', rule, {
`insetInlineStart: '50%', transform: 'translate(0, -50%)'`,
),
},
- {
- // A narrow config exception may defer this relationship diagnostic while
- // retaining every key/value check in this rule.
- code: inStylex(`
- insetInlineStart: { default: null, '@media (pointer: coarse)': '50%' },
- transform: { default: null, '@media (pointer: coarse)': 'translate(-50%, -50%)' }
- `),
- options: [{allowLogicalCentering: true}],
- },
// Logical border longhands are fine
{code: inStylex(`borderInlineStartWidth: 1, borderInlineEndColor: 'red'`)},
// Logical corner radii are fine
@@ -142,14 +137,6 @@ ruleTester.run('no-physical-properties', rule, {
}
`),
},
- // The config exception still defers every relationship diagnostic,
- // including the unverifiable ones.
- {
- code: inStylex(
- `insetInlineStart: '50%', transform: 'matrix(1, 0, 0, 1, -50, 0)'`,
- ),
- options: [{allowLogicalCentering: true}],
- },
],
invalid: [
// --- KEY-BASED: margin (autofix renames the key) ---
@@ -296,18 +283,6 @@ ruleTester.run('no-physical-properties', rule, {
},
],
},
- {
- // The temporary relationship exemption does not weaken physical-key checks.
- code: inStylex(`left: 0`),
- options: [{allowLogicalCentering: true}],
- output: inStylex(`insetInlineStart: 0`),
- errors: [
- {
- messageId: 'physicalKey',
- data: {physical: 'left', logical: 'insetInlineStart'},
- },
- ],
- },
{
code: inStylex(`right: 0`),
output: inStylex(`insetInlineEnd: 0`),