Iframe Scan Test — Test 2 (src=...)
How this test works: This iframe loads test-iframe-child.html from the SAME folder (same-origin).
Both files must be hosted on the SAME host:port. Example: serve the outputs folder via any static server and open this file:
npx http-server . -p 5500thenhttp://localhost:5500/test-iframe-src.html
Expected:
- Parent: 2 issues (empty button + grey text).
- Child (loaded in iframe): ~8 axe issues.
- Scanner should report ~10 total issues. If only ~2 → iframe scan broken for
src=.
Important: If you open this file via file://, browsers may treat the iframe as cross-origin and block scanning. Always test via http://.
PARENT page: grey #999 text — should FAIL contrast on parent.