Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/test/data/accessibility/aria/table-column-hidden.html

Issue 2953363002: Updates table-like objects when cells are added or removed. (Closed)
Patch Set: Updates table-like objects when cell IDs are added or removed. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 @WAIT-FOR:done
4 @WIN-ALLOW:colcount*
5 @WIN-ALLOW:colindex*
6 @WIN-ALLOW:rowcount*
7 @WIN-ALLOW:rowindex*
8 @MAC-ALLOW:AXARIAColumn*
9 @MAC-ALLOW:AXARIARow*
10 @BLINK-ALLOW:cellIds*
11 @BLINK-ALLOW:*ColumnCount*
12 @BLINK-ALLOW:ariaCellColumnIndex*
13 @BLINK-ALLOW:*RowCount*
14 @BLINK-ALLOW:ariaCellRowIndex*
15 -->
16 <table role="grid" aria-rowcount="3" aria-colcount="4">
17 <tbody><tr>
18 <th aria-rowindex="1" aria-colindex="1">Month</th>
19 <th aria-rowindex="1" aria-colindex="2">Day</th>
20 <th aria-rowindex="1" aria-colindex="3">Year</th>
21 <th aria-rowindex="1" aria-colindex="4">Weather</th>
22 </tr>
23 <tr>
24 <td role="gridcell" tabindex="0" aria-rowindex="2" aria-colindex="1">January </td>
25 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="2">01</td >
26 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="3">2017</ td>
27 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="4">Sunny< /td>
28 </tr>
29 <tr>
30 <td role="gridcell" tabindex="0" aria-rowindex="2" aria-colindex="1">January </td>
31 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="2">02</td >
32 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="3">2017</ td>
33 <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="4">Rainy< /td>
34 </tr>
35 </tbody>
36 </table>
37 <p></p>
38
39 <script>
40 // Hide the year column.
41 let cells = document.querySelectorAll('[aria-colindex="3"]');
42 for (let cell of cells) {
43 cell.style.display = 'none';
44 }
45 document.querySelector('p').textContent = 'done';
46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698