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

Side by Side Diff: LayoutTests/fast/layout/nested-subtree-layout-preferred-widths.html

Issue 1184563002: Fix broken preferred widths optimization involving subtree layout roots (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the code! Created 5 years, 6 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/layout/nested-subtree-layout-preferred-widths-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 div {
4 overflow: hidden;
5 }
6 #root {
7 width: 200px;
8 height: 400px;
9 background: red;
10 }
11 #content {
12 background: green;
13 width: 100%;
14 height: 400px;
15 display: block;
16 }
17 #container {
18 width: 400px;
19 height: 400px;
20 }
21 </style>
22 <script src="../../resources/check-layout.js"></script>
23 <div>
24 crbug.com/497178: This test ensures we properly recompute preferred widths f or
25 nested subtree roots. If this test is ever flaky, it should be considered
26 failing due the the non-deterministic way we iterate over subtree layout roo ts.
27 </div>
28 <div id="container">
29 <div id="root">
30 <div data-expected-width="400" id="content">OriginalText</div>
31 </div>
32 </div>
33 <script>
34 document.body.offsetTop;
35 var rootElement = document.getElementById("root");
36 var content = document.getElementById("content");
37 content.innerText = "";
38 rootElement.style.width = "400px";
39 checkLayout("#content");
40 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/layout/nested-subtree-layout-preferred-widths-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698