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

Side by Side Diff: LayoutTests/css3/flexbox/repaint-rtl-column.html

Issue 1088633002: Unprefix flexbox tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: whoops, a > went missing 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #flexbox { 3 #flexbox {
4 display: -webkit-flex; 4 display: flex;
5 -webkit-flex-flow: column; 5 flex-flow: column;
6 height: 300px; 6 height: 300px;
7 width: 200px; 7 width: 200px;
8 } 8 }
9 #left { 9 #left {
10 -webkit-flex: 1; 10 flex: 1;
11 background-color: yellow; 11 background-color: yellow;
12 min-height: 0; 12 min-height: 0;
13 } 13 }
14 #content { 14 #content {
15 -webkit-flex: 1; 15 flex: 1;
16 border: 5px solid blue; 16 border: 5px solid blue;
17 min-height: 0; 17 min-height: 0;
18 } 18 }
19 #content > div { 19 #content > div {
20 height: 350px; 20 height: 350px;
21 background-color: orange; 21 background-color: orange;
22 } 22 }
23 </style> 23 </style>
24 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 24 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
25 <script> 25 <script>
26 // This test makes sure that we repaint the right region of a flexbox when 26 // This test makes sure that we repaint the right region of a flexbox when
27 // changing the flex values. Only the middle of the test page should be 27 // changing the flex values. Only the middle of the test page should be
28 // repainted. If the top of the test page (above the flexbox) is repainted, 28 // repainted. If the top of the test page (above the flexbox) is repainted,
29 // this test fails. 29 // this test fails.
30 function setFlex(value) 30 function setFlex(value)
31 { 31 {
32 document.getElementById("content").style.webkitFlex = value; 32 document.getElementById("content").style.flex = value;
33 } 33 }
34 34
35 window.testIsAsync = true; 35 window.testIsAsync = true;
36 window.onload = runRepaintTest; 36 window.onload = runRepaintTest;
37 37
38 function repaintTest() { 38 function repaintTest() {
39 // FIXME: we need a better way of waiting for layout/repainting to happen 39 // FIXME: we need a better way of waiting for layout/repainting to happen
40 setTimeout(function() { 40 setTimeout(function() {
41 setFlex(4.6); 41 setFlex(4.6);
42 setTimeout(function() { 42 setTimeout(function() {
43 setFlex(5); 43 setFlex(5);
44 finishRepaintTest(); 44 finishRepaintTest();
45 }, 1) 45 }, 1)
46 }, 1) 46 }, 1)
47 }; 47 };
48 </script> 48 </script>
49 <div style="height: 60px"></div> 49 <div style="height: 60px"></div>
50 <div id="flexbox" dir="rtl"> 50 <div id="flexbox" dir="rtl">
51 <div id="left"></div> 51 <div id="left"></div>
52 <div id="content"><div></div></div> 52 <div id="content"><div></div></div>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/repaint-column-reverse.html ('k') | LayoutTests/css3/flexbox/stretch-input-in-column-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698