As discussed in https://github.com/w3c/dpub-aria/issues/42#issuecomment-1092558918, doc-example is a dpub variant of the figure role. This role being the same as figure but with the opportunity of being exposed as an "example" for its role description, needs to be an allowed role for the figure element.
Expected results:
doc-example is an allowed role for <figure role=doc-example>...<figcaption>...</figcaption>figure results in a warning as unnecessary for <figure role=figure>...<figcaption>...</figcaption>
no other roles are allowed if a figcaption is a child of a figure element.
closes #412
As discussed in https://github.com/w3c/dpub-aria/issues/42#issuecomment-1092558918,
doc-example
is a dpub variant of thefigure
role. This role being the same asfigure
but with the opportunity of being exposed as an "example" for its role description, needs to be an allowed role for thefigure
element.create test case
Expected results:
doc-example
is an allowed role for<figure role=doc-example>...<figcaption>...</figcaption>
figure
results in a warning as unnecessary for<figure role=figure>...<figcaption>...</figcaption>
no other roles are allowed if afigcaption
is a child of afigure
element.Preview | Diff