Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
<!DOCTYPE html>
<html>
<head>
<title>TextBounds tests</title>
<link rel="stylesheet" type="text/css"
<script type="application/javascript"
src="../common.js"></script>
<script type="application/javascript"
src="../layout.js"></script>
<script type="application/javascript">
function doTest() {
// Returned rect should be all 0 if no frame; e.g. display: contents.
testTextBounds(
"displayContents", 0, 0, [0, 0, 0, 0], COORDTYPE_SCREEN_RELATIVE
);
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
addA11yLoadEvent(doTest);
</script>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test">
</pre>
<section id="displayContents" style="display: contents;"></section>
</body>
</html>