11 <script src=
"../../resources/js-test.js"></script>
13 description('When adding focus ring rects, we should avoid adding line box rects of recursive inlines repeatedly');
15 document
.body
.offsetTop
;
16 // 5 focus ring rects:
17 // - 0-2: line boxes of the focused span;
18 // - 3: the inner block
19 // - 4: root line box of the inner block
20 if (window
.testRunner
&& window
.internals
)
21 shouldBe("internals.focusRingRects(document.getElementById('focus')).length", "5");
26 <b><b><b><i><i><i>INLINE
</i></i> <i><i>TEXT
</i></i>
27 <div id=
"inner"><b><b>BLOCK
</b> <i>CONTENTS
</i></b></div>