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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/test/data/accessibility/aria/table-column-hidden.html
diff --git a/content/test/data/accessibility/aria/table-column-hidden.html b/content/test/data/accessibility/aria/table-column-hidden.html
new file mode 100644
index 0000000000000000000000000000000000000000..85802a1edc383813cfc5cdca96c3138383c6285e
--- /dev/null
+++ b/content/test/data/accessibility/aria/table-column-hidden.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<!--
+@WAIT-FOR:done
+@WIN-ALLOW:colcount*
+@WIN-ALLOW:colindex*
+@WIN-ALLOW:rowcount*
+@WIN-ALLOW:rowindex*
+@MAC-ALLOW:AXARIAColumn*
+@MAC-ALLOW:AXARIARow*
+@BLINK-ALLOW:cellIds*
+@BLINK-ALLOW:*ColumnCount*
+@BLINK-ALLOW:ariaCellColumnIndex*
+@BLINK-ALLOW:*RowCount*
+@BLINK-ALLOW:ariaCellRowIndex*
+-->
+<table role="grid" aria-rowcount="3" aria-colcount="4">
+ <tbody><tr>
+ <th aria-rowindex="1" aria-colindex="1">Month</th>
+ <th aria-rowindex="1" aria-colindex="2">Day</th>
+ <th aria-rowindex="1" aria-colindex="3">Year</th>
+ <th aria-rowindex="1" aria-colindex="4">Weather</th>
+ </tr>
+ <tr>
+ <td role="gridcell" tabindex="0" aria-rowindex="2" aria-colindex="1">January</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="2">01</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="3">2017</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="4">Sunny</td>
+ </tr>
+ <tr>
+ <td role="gridcell" tabindex="0" aria-rowindex="2" aria-colindex="1">January</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="2">02</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="3">2017</td>
+ <td role="gridcell" tabindex="-1" aria-rowindex="2" aria-colindex="4">Rainy</td>
+ </tr>
+ </tbody>
+</table>
+<p></p>
+
+<script>
+ // Hide the year column.
+ let cells = document.querySelectorAll('[aria-colindex="3"]');
+ for (let cell of cells) {
+ cell.style.display = 'none';
+ }
+ document.querySelector('p').textContent = 'done';
+</script>

Powered by Google App Engine
This is Rietveld 408576698