Manual Test Cases for Iframe Height Attribute - Test 58

Test 58: One or more iframe elements with a height > 1, without an ARIA-assigned role, not intentionally hidden in the DOM and available to assistive technologies, has a height attribute set to a value that does not end with '%'.

Context: EAP-41759 found Platform showing stale rule-58 text missing the "with a height > 1" clause. That clause was already correct in access-engine-es2015 (fixed Nov 2020, ENG-989); the drift was in Platform's cached copy of the rule text, not the engine. This page verifies the engine's actual selector/description still match what ENG-989 intended, in particular the height="1"/"1px" tiny-iframe exclusion.

Test Logic (src/Tests/GuidedAutomatic/Test_58.js):

Purpose:

Absolute-unit heights on iframes don't reflow with the user's zoom/text-size settings, unlike percentage heights.

N/A Tests - Should Not Be Tested

Iframe with height="1" (tiny/tracking iframe)

height="1" is explicitly excluded regardless of unit - this is the ENG-989 exception the description clause refers to

Iframe with height="1px" (tiny/tracking iframe)

height="1px" is explicitly excluded

Iframe with no height attribute

Selector requires a height attribute to be present

Iframe with empty height attribute

Empty height values are excluded

Iframe with ARIA-assigned role (role="presentation")

Any ARIA-assigned role removes the element from scope, even with a failing height

Hidden iframe (display:none) with failing height

Not visible - excluded from testing

Iframe with aria-hidden="true" and failing height

aria-hidden elements are not available to assistive technologies

PASS Tests - Percentage Height

Iframe with height="50%"

Height ends in "%" - reflows with zoom, PASSES

Iframe with height="100%" in a sized container

Percentage height relative to container - PASSES

FAIL Tests - Absolute Height

Iframe with height="300" (no unit)

Absolute height that does not end in "%" - FAILS

Iframe with height="300px"

Explicit px height - FAILS

Iframe embed with fixed absolute height (real-world video embed)

Common third-party embed pattern (video/map) shipped with a fixed px height - FAILS

Edge Cases

Iframe with height="0"

Not >1 in spirit, but the selector only special-cases exactly "1"/"1px" - height="0" still FAILS per current code, worth confirming against the description text

Iframe with height="1.5" (not exactly "1")

String match is exact - "1.5" does not equal "1", so this FAILS despite being close to the tiny-iframe exception

Iframe with role="none" and height="1px"

Excluded twice over: ARIA role assigned AND height="1px" - still N/A

Iframe with height="1%25" style value vs attribute mismatch (attribute wins)

Test reads the height attribute, not the CSS style - attribute value "150" FAILS even though CSS overrides the rendered height