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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/dimensions-include-descendants.html

Issue 2169273004: Switch all LayoutTests to use new accessibility relative bounding box API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix absolute bounds in AXInlineTextBox::elementRect Created 4 years, 4 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
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <div style = "height: 150px;"> 2 <div style = "height: 150px;">
3 <a href="#" id="link1"><div style="width: 20px; height: 20px; display: inlin e-block"></div><div style="width: 80px; height: 100px; float: left;"></div></a> 3 <a href="#" id="link1"><div style="width: 20px; height: 20px; display: inlin e-block; background-color: #00f;"></div><div style="width: 80px; height: 100px; float: left; background-color: #0f0;"></div></a>
4 </div> 4 </div>
5 <div style = "height: 150px;"> 5 <div style = "height: 150px;">
6 <a href="#" id="link2"><div style="width: 100px; height: 96px; position: rel ative; display: inline-block;"></div></a> 6 <a href="#" id="link2"><div style="width: 100px; height: 96px; position: rel ative; display: inline-block; background-color: #f00;"></div></a>
7 </div> 7 </div>
8 <div id="result"></div> 8 <div id="result"></div>
9 <script> 9 <script>
10 if (window.accessibilityController) { 10 if (window.accessibilityController) {
11 testRunner.dumpAsText(); 11 testRunner.dumpAsText();
12 12
13 document.getElementById("link1").focus(); 13 document.getElementById("link1").focus();
14 var link1 = accessibilityController.focusedElement; 14 var link1 = accessibilityController.focusedElement;
15 document.getElementById("link2").focus(); 15 document.getElementById("link2").focus();
16 var link2 = accessibilityController.focusedElement; 16 var link2 = accessibilityController.focusedElement;
17 17
18 document.getElementById("result").innerText = "link 1 dimensions: " + li nk1.width + " x " + link1.height + "; link 2 dimensions: " + link2.width + " x " + link2.height; 18 document.getElementById("result").innerText = "link 1 dimensions: " + li nk1.width + " x " + link1.height + "; link 2 dimensions: " + link2.width + " x " + link2.height;
19 } 19 }
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698