gel-foundations-data-tables
Tabular data must be presented with a sound semantic and visual structure.
This rule tests that when a data table is included in an HTML page it meets the requirement of the BBC GEL Data table component.
atomic
- BBC GEL Data tables
- Required for conformance to BBC GEL
- Outcome mapping:
- Any failed outcomes: success criterion is not satisfied
- All passed outcomes: success criterion needs further testing
- An inapplicable outcome: success criterion needs further testing
DOM Tree
This rule applies to any HTML page that includes a BBC GEL Data table component.
Data tables must have column headers or row headers or both.
If a <table> element is used, header cells must be <th> elements.
If a <table> element is not used, the container for the tabular data must have role="table".
If a <table> element is not used, the column header cells for the tabular data must have role="columnheader".
If a <table> element is not used, the row header cells for the tabular data must have role="rowheader".
If a <table> element is not used, the container for each row of tabular data must have role="row".
If a <table> element is not used, the container for each data cell must have role="cell".
BBC GEL Data table components must retain their two dimensional visual structure, with column headers horizontally aligned with their associated data cells and row headers vertically aligned with their associated data cells. It is permitted for tabular data to scroll in two dimensions but this must not cause the entire viewport to scroll in two dimensions.
Last modified: 2020-10-04