Tests the #comp_name_from_content portions of the AccName Name Computation algorithm.
This series of tests exercises the button, heading, and link elements, because each have different characteristics worthy of testing in each of the name computation algorithm scenarios:
button is a leaf node with sub-level elements presentational.
heading is block level, and can contain sub-level interactives like links.
link (a[href]) is an interactive inline element that can include non-presentational descendants.
ARIA roles, inline
label
label
label
ARIA roles, block
label
label
label
simple
label
label
label
simple with ::before
label
label
label
simple with ::after
label
label
label
simple with ::before and ::after
label
label
label
no space joiners ::before and ::after
label
label
label
Arabic right-to-left (RTL) with ::before and ::after
rendered text should be "before label after"
accessibility label should be "alt-before label alt-after"
label
label
label
rendered text should be "before label after"
accessibility label should be "start alt-before end label start alt-after end"
label
label
label
Empty alternative text for CSS content in pseudo-elements when applied to primitive appearance form controls
simple w/ for each child
one two three
one two three
one two three
simple for each child with image
one three
one three
one three
simple for each child with extra nesting containing image
one two four
one two four
one two four
heading with nested button with nested image
heading
button
button
heading
heading with nested link with nested image
heading with nested link with nested image using aria-label
heading with nested link with nested image using aria-labelledby
heading with two nested links referencing image using aria-labelledby
simple w/ for each child (w/o spaces and display:inline)
one two three
one two three
one two three
simple w/ for each child (w/o spaces and display:block)
one two three
one two three
one two three
simple w/ for each child (w/o spaces and display:inline block)
one two three
one two three
one two three
Call us
Call us
Call us
Call us