| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test.js"></script> |
| <script src="../resources/accessibility-helper.js"></script> |
| <div id="toolbar" role="toolbar" style="display: contents;"> |
| <div id="group" role="group" style="display: contents;"> |
| <button id="button" style="display: contents;">Foo</button> |
| var testOutput = "This test ensures we calculate the frame correctly for objects that don't have a renderer (like display: contents elements).\n\n"; |
| const axElement = accessibilityController.accessibleElementById(id); |
| testOutput += `#${id}: {width: ${axElement.width}, height: ${axElement.height}}\n`; |
| if (window.accessibilityController) { |