@a11y-oracle/axe-bridge 1.1.0 → 1.1.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.
@@ -1 +1 @@
1
- {"version":3,"file":"focus-indicator.d.ts","sourceRoot":"","sources":["../../../src/lib/resolvers/focus-indicator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAW,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAmB9E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAkHrB"}
1
+ {"version":3,"file":"focus-indicator.d.ts","sourceRoot":"","sources":["../../../src/lib/resolvers/focus-indicator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAW,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAmB9E;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,cAAc,EACnB,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,UAAU,CAAC,CAqHrB"}
@@ -73,6 +73,9 @@ export async function resolveFocusIndicator(cdp, axeResults, options) {
73
73
  expression: `(() => {
74
74
  const el = document.querySelector(${JSON.stringify(selector)});
75
75
  if (!el) return null;
76
+ // Scroll element into viewport so Page.captureScreenshot can capture it.
77
+ // Without this, off-screen elements produce white screenshots.
78
+ el.scrollIntoView({ behavior: 'instant', block: 'center', inline: 'nearest' });
76
79
  const rect = el.getBoundingClientRect();
77
80
  // Expand clip region slightly to capture outline/box-shadow
78
81
  const pad = 4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a11y-oracle/axe-bridge",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Axe-core result post-processor that resolves 10 incomplete rules using visual analysis, keyboard interaction, and CDP inspection",
5
5
  "license": "MIT",
6
6
  "author": "a11y-oracle",
@@ -44,10 +44,10 @@
44
44
  "!**/*.tsbuildinfo"
45
45
  ],
46
46
  "dependencies": {
47
- "@a11y-oracle/cdp-types": "1.1.0",
48
- "@a11y-oracle/focus-analyzer": "1.1.0",
49
- "@a11y-oracle/keyboard-engine": "1.1.0",
50
- "@a11y-oracle/visual-engine": "1.1.0",
47
+ "@a11y-oracle/cdp-types": "1.1.2",
48
+ "@a11y-oracle/focus-analyzer": "1.1.2",
49
+ "@a11y-oracle/keyboard-engine": "1.1.2",
50
+ "@a11y-oracle/visual-engine": "1.1.2",
51
51
  "tslib": "^2.3.0"
52
52
  }
53
53
  }