Sc1 3 1 Tables Layout

Please note, this is a draft

Description

This test checks that tables used for layout purposes do not contain tabular data or markup.

Background

Assumptions

Tables that have no tabular mark-up are interpreted by assistive technologies as layout tables. According to WCAG this includes:

Test properties

Property Value
Test name Tables Layout
Success Criterion 1.3.1 Info and Relationships
Test mode SemiAuto
Test environment rendered page
Test subject Entire web page
User expertise and skills no prior knowledge
User profile Does not require sight.

Test procedure

  ### Selector

Test mode: automatic

Select all tables on the page marked as presentational (using role=”presentation” on the table element.

In addition, select tables with all of the following characteristics (see conditions for layout tables listed above):

Step 1 - Check if actual data tables have wrongly been marked as presentational using ARIA

Test mode: automatic

for each table with role=”presentation”.

Check if table contains

If yes,

Outcome Failed
Testcase SC1-3-1-tables-layout
ID SC1-3-1-tables-layout-fail1
Error A datatable is marked as presentational for assistive technologies.

else, continue with Step 2

step 2

Test mode: automatic

Check if any td element has a headers attribute or a scope attribute.

If yes,

Outcome Failed
Testcase SC1-3-1-tables-layout
ID SC1-3-1-tables-layout-fail2
Error Layout tables cannot associate a cell with other cels.

else, continue with Step 3

step 3

Test mode: manual

For each remaining table that matches the selector, ask user to confirm that the table is not a data table.

User Input Question:

Property Value
Presented item A table (or page with location of table highlighted)
Question Does the table look like an actual datatable?
Help A datatable is a table that: Visually looks like a table and, b. When you look at a cell in the table, you need to check its column header or row header to fully understand the content of that cell.
Requires context no
Requires Interaction no

if yes

Outcome Failed
Testcase SC1-3-1-tables-layout
ID SC1-3-1-tables-layout-fail3
Error Table containing tabular data is presented as a layout table.

else

Outcome Passed
Testcase SC1-3-1-tables-layout
ID SC1-3-1-tables-layout-pass1