Figure and figcaption tests

Test 1

Figure with img that has a non-empty alt attribute and has a non-empty figcaption. The accessible name of the figure is sourced from the figcaption.

Earth

Non-image figure content

Content caption.

Test 2

Figure with img that has a non-empty alt attribute, has a non-empty figcaption, and has an aria-label attribute on the figure. The accessible name of the figure is sourced from the aria-label.

Earth

Non-image figure content

Content caption line 1.

Content caption line 2.

Test 3

Figure with img that has an non-empty alt attribute, and is missing a figcaption. The accessible name of the figure is missing.

Earth

Non-image figure content