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

Side by Side Diff: LayoutTests/fast/css/focus-ring-recursive-inlines.html

Issue 1083403005: Don't add duplicated line box rects into focus ring rects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/focus-ring-recursive-inlines-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #container {
4 width: 200px;
5 }
6 #inner {
7 position: relative;
8 top: -3px;
9 }
10 </style>
11 <script src="../../resources/js-test.js"></script>
12 <script>
13 description('When adding focus ring rects, we should avoid adding line box rects of recursive inlines repeatedly');
14 onload = function() {
15 document.body.offsetTop;
16 // 6 focus ring rects:
17 // - 0-2: line boxes of the focused span;
18 // - 3: anonymous continuation block;
19 // - 4: the inner block
20 // - 5: root line box of the inner block
21 if (window.testRunner && window.internals)
22 shouldBe("internals.focusRingRects(document.getElementById('focus')).length" , "6");
23 };
24 </script>
25 <div id="container">
26 <span id="focus">
27 <b><b><b><i><i><i>INLINE</i></i> <i><i>TEXT</i></i>
28 <div id="inner"><b><b>BLOCK</b> <i>CONTENTS</i></b></div>
29 </i></b></b></b>
30 </span>
31 </div>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/focus-ring-recursive-inlines-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698