Changeset 117385 in webkit
- Timestamp:
- May 16, 2012 8:19:31 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 65 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117372 r117385 1 2012-05-16 Tony Chang <tony@chromium.org> 2 3 rename display:-webkit-flexbox to display:-webkit-flex 4 https://bugs.webkit.org/show_bug.cgi?id=86529 5 6 Reviewed by Eric Seidel. 7 8 * css3/flexbox/anonymous-block-merge-crash.html: 9 * css3/flexbox/anonymous-block.html: 10 * css3/flexbox/auto-height-dynamic.html: 11 * css3/flexbox/child-overflow.html: 12 * css3/flexbox/columns-auto-size.html: 13 * css3/flexbox/cross-axis-scrollbar.html: 14 * css3/flexbox/css-properties-expected.txt: 15 * css3/flexbox/css-properties.html: 16 * css3/flexbox/display-flexbox-set-get-expected.txt: 17 * css3/flexbox/display-flexbox-set-get.html: 18 * css3/flexbox/flex-algorithm-min-max.html: 19 * css3/flexbox/flex-algorithm-with-margins.html: 20 * css3/flexbox/flex-algorithm.html: 21 * css3/flexbox/flex-align-baseline.html: 22 * css3/flexbox/flex-align-column.html: 23 * css3/flexbox/flex-align-end.html: 24 * css3/flexbox/flex-align-max.html: 25 * css3/flexbox/flex-align-percent-height.html: 26 * css3/flexbox/flex-align-stretch.html: 27 * css3/flexbox/flex-align-vertical-writing-mode.html: 28 * css3/flexbox/flex-align.html: 29 * css3/flexbox/flex-flow-border.html: 30 * css3/flexbox/flex-flow-margins-auto-size.html: 31 * css3/flexbox/flex-flow-margins.html: 32 * css3/flexbox/flex-flow-orientations.html: 33 * css3/flexbox/flex-flow-overflow.html: 34 * css3/flexbox/flex-flow-padding.html: 35 * css3/flexbox/flex-flow.html: 36 * css3/flexbox/flex-item-child-overflow.html: 37 * css3/flexbox/flex-no-flex.html: 38 * css3/flexbox/flex-order.html: 39 * css3/flexbox/flex-pack.html: 40 * css3/flexbox/flexbox-overflow-auto-expected.html: 41 * css3/flexbox/flexbox-overflow-auto.html: 42 * css3/flexbox/floated-flexbox.html: 43 * css3/flexbox/insert-text-crash.html: 44 * css3/flexbox/line-wrapping.html: 45 * css3/flexbox/multiline-align.html: 46 * css3/flexbox/multiline-column-auto.html: 47 * css3/flexbox/multiline-line-pack-horizontal-column.html: 48 * css3/flexbox/multiline-line-pack.html: 49 * css3/flexbox/multiline-pack.html: 50 * css3/flexbox/multiline-reverse-wrap-baseline.html: 51 * css3/flexbox/multiline-reverse-wrap-overflow.html: 52 * css3/flexbox/multiline-shrink-to-fit.html: 53 * css3/flexbox/multiline.html: 54 * css3/flexbox/nested-stretch.html: 55 * css3/flexbox/orthogonal-flex-directions.html: 56 * css3/flexbox/position-absolute-child.html: 57 * css3/flexbox/preferred-widths-orthogonal.html: 58 * css3/flexbox/preferred-widths.html: 59 * css3/flexbox/repaint-rtl-column.html: 60 * css3/flexbox/repaint.html: 61 * css3/flexbox/true-centering.html: 62 * css3/flexbox/writing-modes.html: 63 1 64 2012-05-16 Chris Rogers <crogers@google.com> 2 65 -
trunk/LayoutTests/css3/flexbox/anonymous-block-merge-crash.html
r101411 r117385 1 <div style="display:-webkit-flex box"><div id="inner"></div>If this page doesn't crash then this test passes.</div>1 <div style="display:-webkit-flex"><div id="inner"></div>If this page doesn't crash then this test passes.</div> 2 2 <script> 3 3 if (window.layoutTestController) -
trunk/LayoutTests/css3/flexbox/anonymous-block.html
r99120 r117385 2 2 <html> 3 3 <body> 4 <div style="display: -webkit-flex box">This text should be visible.</div>4 <div style="display: -webkit-flex">This text should be visible.</div> 5 5 </body> 6 6 </html> -
trunk/LayoutTests/css3/flexbox/auto-height-dynamic.html
r113097 r117385 4 4 .flexbox { 5 5 width: 600px; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: #aaa; 8 8 position: relative; -
trunk/LayoutTests/css3/flexbox/child-overflow.html
r113097 r117385 42 42 .flexbox { 43 43 border: 5px solid pink; 44 display: -webkit-flex box;44 display: -webkit-flex; 45 45 height: 100px; 46 46 width: 100px; -
trunk/LayoutTests/css3/flexbox/columns-auto-size.html
r113097 r117385 7 7 8 8 .flexbox { 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 -webkit-flex-flow: column; 11 11 background-color: #aaa; -
trunk/LayoutTests/css3/flexbox/cross-axis-scrollbar.html
r113097 r117385 8 8 9 9 .flexbox { 10 display: -webkit-flex box;10 display: -webkit-flex; 11 11 background-color: red; 12 12 } -
trunk/LayoutTests/css3/flexbox/css-properties-expected.txt
r116166 r117385 1 Tests being able to set the display to -webkit-flex box and -webkit-inline-flexbox.1 Tests being able to set the display to -webkit-flex and -webkit-inline-flex. 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 4 4 5 5 6 PASS flexbox.style.display is "-webkit-flex box"6 PASS flexbox.style.display is "-webkit-flex" 7 7 PASS flexbox.style.display is "inline" 8 PASS flexbox.style.display is "-webkit-inline-flex box"9 PASS flexbox.style.display is "-webkit-inline-flex box"8 PASS flexbox.style.display is "-webkit-inline-flex" 9 PASS flexbox.style.display is "-webkit-inline-flex" 10 10 PASS flexbox.style.display is "block" 11 11 PASS flexitem.style.webkitFlexOrder is "" -
trunk/LayoutTests/css3/flexbox/css-properties.html
r116166 r117385 9 9 </div> 10 10 <script> 11 description('Tests being able to set the display to -webkit-flex box and -webkit-inline-flexbox.');11 description('Tests being able to set the display to -webkit-flex and -webkit-inline-flex.'); 12 12 13 13 var flexbox = document.getElementById("flexbox"); 14 14 15 flexbox.style.display = '-webkit-flex box';16 shouldBeEqualToString('flexbox.style.display', '-webkit-flex box');15 flexbox.style.display = '-webkit-flex'; 16 shouldBeEqualToString('flexbox.style.display', '-webkit-flex'); 17 17 18 18 flexbox.style.display = 'inline'; 19 19 shouldBeEqualToString('flexbox.style.display', 'inline'); 20 20 21 flexbox.style.display = '-webkit-inline-flex box';22 shouldBeEqualToString('flexbox.style.display', '-webkit-inline-flex box');21 flexbox.style.display = '-webkit-inline-flex'; 22 shouldBeEqualToString('flexbox.style.display', '-webkit-inline-flex'); 23 23 24 24 flexbox.style.display = 'junk'; 25 shouldBeEqualToString('flexbox.style.display', '-webkit-inline-flex box');25 shouldBeEqualToString('flexbox.style.display', '-webkit-inline-flex'); 26 26 27 27 flexbox.style.display = 'block'; -
trunk/LayoutTests/css3/flexbox/display-flexbox-set-get-expected.txt
r100211 r117385 1 Test that setting and getting display: -webkit-flex box and -webkit-inline-flexbox works as expected1 Test that setting and getting display: -webkit-flex and -webkit-inline-flex works as expected 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 5 5 6 6 Test getting |display| set through CSS 7 PASS getComputedStyle(flexboxElement, '').getPropertyValue('display') is '-webkit-flex box'8 PASS getComputedStyle(inlineFlexboxElement, '').getPropertyValue('display') is '-webkit-inline-flex box'7 PASS getComputedStyle(flexboxElement, '').getPropertyValue('display') is '-webkit-flex' 8 PASS getComputedStyle(inlineFlexboxElement, '').getPropertyValue('display') is '-webkit-inline-flex' 9 9 10 10 Test getting and setting display through JS 11 11 PASS getComputedStyle(element, '').getPropertyValue('display') is 'block' 12 PASS getComputedStyle(element, '').getPropertyValue('display') is '-webkit-flex box'12 PASS getComputedStyle(element, '').getPropertyValue('display') is '-webkit-flex' 13 13 PASS getComputedStyle(element, '').getPropertyValue('display') is 'block' 14 PASS getComputedStyle(element, '').getPropertyValue('display') is '-webkit-inline-flex box'14 PASS getComputedStyle(element, '').getPropertyValue('display') is '-webkit-inline-flex' 15 15 PASS successfullyParsed is true 16 16 -
trunk/LayoutTests/css3/flexbox/display-flexbox-set-get.html
r113258 r117385 3 3 <head> 4 4 <style> 5 .flexbox { display: -webkit-flex box; }6 .flexboxInline { display: -webkit-inline-flex box; }5 .flexbox { display: -webkit-flex; } 6 .flexboxInline { display: -webkit-inline-flex; } 7 7 </style> 8 8 <script src="../../fast/js/resources/js-test-pre.js"></script> … … 12 12 <div class="flexboxInline" id="flexboxInline"></div> 13 13 <script> 14 description('Test that setting and getting display: -webkit-flex box and -webkit-inline-flexbox works as expected');14 description('Test that setting and getting display: -webkit-flex and -webkit-inline-flex works as expected'); 15 15 16 16 debug("Test getting |display| set through CSS"); 17 17 var flexboxElement = document.getElementById("flexbox"); 18 shouldBe("getComputedStyle(flexboxElement, '').getPropertyValue('display')", "'-webkit-flex box'");18 shouldBe("getComputedStyle(flexboxElement, '').getPropertyValue('display')", "'-webkit-flex'"); 19 19 var inlineFlexboxElement = document.getElementById("flexboxInline"); 20 shouldBe("getComputedStyle(inlineFlexboxElement, '').getPropertyValue('display')", "'-webkit-inline-flex box'");20 shouldBe("getComputedStyle(inlineFlexboxElement, '').getPropertyValue('display')", "'-webkit-inline-flex'"); 21 21 22 22 debug(""); … … 25 25 document.body.appendChild(element); 26 26 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'block'"); 27 element.style.display = "-webkit-flex box";28 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'-webkit-flex box'");27 element.style.display = "-webkit-flex"; 28 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'-webkit-flex'"); 29 29 30 30 element = document.createElement("div"); 31 31 document.body.appendChild(element); 32 32 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'block'"); 33 element.style.display = "-webkit-inline-flex box";34 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'-webkit-inline-flex box'");33 element.style.display = "-webkit-inline-flex"; 34 shouldBe("getComputedStyle(element, '').getPropertyValue('display')", "'-webkit-inline-flex'"); 35 35 </script> 36 36 <script src="../../fast/js/resources/js-test-post.js"></script> -
trunk/LayoutTests/css3/flexbox/flex-algorithm-min-max.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-algorithm-with-margins.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-algorithm.html
r113097 r117385 30 30 <body onload="checkFlexBoxen()"> 31 31 32 <div style="display: -webkit-flex box" class="flexbox">32 <div style="display: -webkit-flex" class="flexbox"> 33 33 <div data-expected-width="200" style="-webkit-flex: 1"></div> 34 34 <div data-expected-width="200" style="-webkit-flex: 1"></div> … … 36 36 </div> 37 37 38 <div style="display: -webkit-flex box" class="flexbox">38 <div style="display: -webkit-flex" class="flexbox"> 39 39 <div data-expected-width="200" style="-webkit-flex: .5"></div> 40 40 <div data-expected-width="200" style="-webkit-flex: .5"></div> … … 42 42 </div> 43 43 44 <div style="display: -webkit-flex box" class="flexbox">44 <div style="display: -webkit-flex" class="flexbox"> 45 45 <div data-expected-width="300" style="-webkit-flex: 3"></div> 46 46 <div data-expected-width="200" style="-webkit-flex: 2"></div> … … 48 48 </div> 49 49 50 <div style="display: -webkit-flex box" class="flexbox">50 <div style="display: -webkit-flex" class="flexbox"> 51 51 <div data-expected-width="250" style="-webkit-flex: 1"></div> 52 52 <div data-expected-width="250" style="-webkit-flex: 1"></div> … … 54 54 </div> 55 55 56 <div style="display: -webkit-flex box" class="flexbox">56 <div style="display: -webkit-flex" class="flexbox"> 57 57 <div data-expected-width="150" style="-webkit-flex: 1"></div> 58 58 <div data-expected-width="150" style="-webkit-flex: 1"></div> … … 61 61 62 62 <!-- The first two boxes should fill the extra 300px evenly (each gets 150px extra). --> 63 <div style="display: -webkit-flex box" class="flexbox">63 <div style="display: -webkit-flex" class="flexbox"> 64 64 <div data-expected-width="150" style="-webkit-flex: 1"></div> 65 65 <div data-expected-width="350" style="-webkit-flex: 1 200px"></div> … … 68 68 69 69 <!-- Like the last test, except the middle box gets more space than the first box. --> 70 <div style="display: -webkit-flex box" class="flexbox">70 <div style="display: -webkit-flex" class="flexbox"> 71 71 <div data-expected-width="100" style="-webkit-flex: 1"></div> 72 72 <div data-expected-width="400" style="-webkit-flex: 2 33.333333%"></div> … … 75 75 76 76 <!-- Test some negative flexing. --> 77 <div style="display: -webkit-flex box" class="flexbox">77 <div style="display: -webkit-flex" class="flexbox"> 78 78 <div data-expected-width="200" style="-webkit-flex: 1 1 300px"></div> 79 79 <div data-expected-width="200" style="-webkit-flex: 2 1 300px"></div> … … 81 81 </div> 82 82 83 <div style="display: -webkit-flex box" class="flexbox">83 <div style="display: -webkit-flex" class="flexbox"> 84 84 <div data-expected-width="250" style="-webkit-flex: 1 1 300px"></div> 85 85 <div data-expected-width="150" style="-webkit-flex: 2 3 300px"></div> … … 88 88 89 89 <!-- Test flexitem borders. --> 90 <div style="display: -webkit-flex box" class="flexbox">90 <div style="display: -webkit-flex" class="flexbox"> 91 91 <div data-expected-width="250" style="-webkit-flex: 1; border-left: 150px solid black"></div> 92 92 <div data-expected-width="250" style="-webkit-flex: 1 0 0px; border-right: 150px solid orange"></div> … … 94 94 </div> 95 95 96 <div style="display: -webkit-flex box" class="flexbox">96 <div style="display: -webkit-flex" class="flexbox"> 97 97 <div data-expected-width="300" style="width: 100px; border: 100px solid black"></div> 98 98 <div data-expected-width="200" style="-webkit-flex: 2"></div> … … 101 101 102 102 <!-- Test flexitem padding. --> 103 <div style="display: -webkit-flex box" class="flexbox">103 <div style="display: -webkit-flex" class="flexbox"> 104 104 <div data-expected-width="250" style="-webkit-flex: 1; padding-left: 150px"></div> 105 105 <div data-expected-width="250" style="-webkit-flex: 1 0 0px; padding-right: 150px"></div> … … 107 107 </div> 108 108 109 <div style="display: -webkit-flex box" class="flexbox">109 <div style="display: -webkit-flex" class="flexbox"> 110 110 <div data-expected-width="300" style="width: 100px; padding: 100px"></div> 111 111 <div data-expected-width="200" style="-webkit-flex: 2"></div> … … 113 113 </div> 114 114 115 <div style="display: -webkit-flex box" class="flexbox">115 <div style="display: -webkit-flex" class="flexbox"> 116 116 <div data-expected-width="200" style="-webkit-flex: 1; padding-left: 25%"></div> 117 117 <div data-expected-width="150" style="-webkit-flex: 3;"></div> … … 119 119 </div> 120 120 121 <div style="display: -webkit-flex box" class="flexbox">121 <div style="display: -webkit-flex" class="flexbox"> 122 122 <div data-expected-width="200" style="-webkit-flex: 1; padding-left: 50px; border-right: 50px solid black"></div> 123 123 <div data-expected-width="250" style="-webkit-flex: 2; border-right: 50px solid orange"></div> … … 126 126 127 127 <!-- Test items with an intrinsic size. --> 128 <div style="display: -webkit-flex box" class="flexbox">128 <div style="display: -webkit-flex" class="flexbox"> 129 129 <div data-expected-width="120" style="-webkit-flex: 1"> 130 130 <div style="width: 100px; height: 100%;"></div> … … 134 134 </div> 135 135 136 <div style="display: -webkit-flex box" class="flexbox">136 <div style="display: -webkit-flex" class="flexbox"> 137 137 <div data-expected-width="200" style="-webkit-flex: 1 0 0"> 138 138 <div style="width: 100px; height: 100%;"></div> … … 144 144 <!-- Test border/padding/margin on the flexbox itself. --> 145 145 <div data-expected-width="830" style="border: 10px solid; display: inline-block;"> 146 <div data-expected-width="700" style="display: -webkit-flex box; padding-left: 10px; padding-right: 20px; border-left: 30px solid; border-right: 40px solid; margin-left: 50px; margin-right:60px;" class="flexbox ">146 <div data-expected-width="700" style="display: -webkit-flex; padding-left: 10px; padding-right: 20px; border-left: 30px solid; border-right: 40px solid; margin-left: 50px; margin-right:60px;" class="flexbox "> 147 147 <div data-offset-x="100" data-expected-width="200" style="-webkit-flex: 1"></div> 148 148 <div data-offset-x="300" data-expected-width="200" style="-webkit-flex: 1"></div> -
trunk/LayoutTests/css3/flexbox/flex-align-baseline.html
r107659 r117385 6 6 width: 100px; 7 7 height: 100px; 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 background-color: #aaa; 10 10 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-column.html
r113097 r117385 8 8 width: 600px; 9 9 height: 240px; 10 display: -webkit-flex box;10 display: -webkit-flex; 11 11 background-color: #aaa; 12 12 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-end.html
r107659 r117385 6 6 width: 100px; 7 7 height: 100px; 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 background-color: #aaa; 10 10 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-max.html
r113097 r117385 6 6 } 7 7 .flexbox { 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 background-color: #aaa; 10 10 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-percent-height.html
r113097 r117385 12 12 .flexbox { 13 13 width: 600px; 14 display: -webkit-flex box;14 display: -webkit-flex; 15 15 background-color: #aaa; 16 16 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-stretch.html
r113097 r117385 6 6 } 7 7 .flexbox { 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 background-color: #aaa; 10 10 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align-vertical-writing-mode.html
r113097 r117385 7 7 .flexbox { 8 8 height: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-align.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-flow-border.html
r113097 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 width: 100px; -
trunk/LayoutTests/css3/flexbox/flex-flow-margins-auto-size.html
r113097 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 margin: 10px 20px 30px 40px; -
trunk/LayoutTests/css3/flexbox/flex-flow-margins.html
r113097 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 width: 100px; -
trunk/LayoutTests/css3/flexbox/flex-flow-orientations.html
r101897 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 width: 100px; -
trunk/LayoutTests/css3/flexbox/flex-flow-overflow.html
r113097 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 width: 100px; -
trunk/LayoutTests/css3/flexbox/flex-flow-padding.html
r113097 r117385 9 9 } 10 10 .flexbox { 11 display: -webkit-flex box;11 display: -webkit-flex; 12 12 background-color: grey; 13 13 width: 100px; -
trunk/LayoutTests/css3/flexbox/flex-flow.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: grey; 11 11 } -
trunk/LayoutTests/css3/flexbox/flex-item-child-overflow.html
r100324 r117385 6 6 } 7 7 .flexbox { 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 position: relative; 10 10 -webkit-flex-flow: column; -
trunk/LayoutTests/css3/flexbox/flex-no-flex.html
r113097 r117385 6 6 } 7 7 .flexbox { 8 display: -webkit-flex box;8 display: -webkit-flex; 9 9 background-color: #aaa; 10 10 position: relative; -
trunk/LayoutTests/css3/flexbox/flex-order.html
r113097 r117385 33 33 <body> 34 34 35 <div style="display: -webkit-flex box" class="horizontal-box">35 <div style="display: -webkit-flex" class="horizontal-box"> 36 36 <div class="first" style="-webkit-flex: 1; -webkit-flex-order: 0"></div> 37 37 <div class="second" style="-webkit-flex: 1;"></div> … … 40 40 </div> 41 41 42 <div style="display: -webkit-flex box" class="horizontal-box">42 <div style="display: -webkit-flex" class="horizontal-box"> 43 43 <div class="fourth" style="-webkit-flex: 1; -webkit-flex-order: 4"></div> 44 44 <div class="third" style="-webkit-flex: 1; -webkit-flex-order: 3"></div> … … 48 48 49 49 <!-- The example from the spec. --> 50 <div style="display: -webkit-flex box" class="horizontal-box">50 <div style="display: -webkit-flex" class="horizontal-box"> 51 51 <div class="third" style="-webkit-flex: 1; -webkit-flex-order: 1"></div> 52 52 <div class="first" style="-webkit-flex: 1"></div> … … 55 55 </div> 56 56 57 <div style="display: -webkit-flex box" class="horizontal-box">57 <div style="display: -webkit-flex" class="horizontal-box"> 58 58 <div class="fourth" style="-webkit-flex: 1; -webkit-flex-order: 2"></div> 59 59 <div class="second" style="-webkit-flex: 1"></div> … … 62 62 </div> 63 63 64 <div style="display: -webkit-flex box" class="horizontal-box">64 <div style="display: -webkit-flex" class="horizontal-box"> 65 65 <div class="fourth" style="-webkit-flex: 1; -webkit-flex-order: 2000000000"></div> 66 66 <div class="second" style="-webkit-flex: 1; -webkit-flex-order: 1000000000"></div> … … 70 70 71 71 <!-- Floating numbers are ignored and we use the default of 1 instead. --> 72 <div style="display: -webkit-flex box" class="horizontal-box">72 <div style="display: -webkit-flex" class="horizontal-box"> 73 73 <div class="second" style="-webkit-flex: 1; -webkit-flex-order: 2.5"></div> 74 74 <div class="fourth" style="-webkit-flex: 1; -webkit-flex-order: 2"></div> … … 77 77 </div> 78 78 79 <div style="display: -webkit-flex box" class="horizontal-box">79 <div style="display: -webkit-flex" class="horizontal-box"> 80 80 <div class="second" style="-webkit-flex: 1; -webkit-flex-order: 0"></div> 81 81 <div class="first" style="-webkit-flex: 1; -webkit-flex-order: -1"></div> … … 86 86 <!-- Values greater than what can be stored in an int are clamped from 87 87 -2,147,483,646 (int min + 2) to 2,147,483,647. --> 88 <div style="display: -webkit-flex box" class="horizontal-box">88 <div style="display: -webkit-flex" class="horizontal-box"> 89 89 <div class="third" style="-webkit-flex: 1; -webkit-flex-order: 4000000000"></div> 90 90 <div class="fourth" style="-webkit-flex: 1; -webkit-flex-order: 3000000000"></div> … … 93 93 </div> 94 94 95 <div style="display: -webkit-flex box" class="horizontal-box">95 <div style="display: -webkit-flex" class="horizontal-box"> 96 96 <div class="second" style="-webkit-flex: 1; -webkit-flex-order: 4000000000"></div> 97 97 <div class="third" style="-webkit-flex: 1; -webkit-flex-order: 3000000000"></div> … … 100 100 </div> 101 101 102 <div style="display: -webkit-flex box" class="horizontal-box">102 <div style="display: -webkit-flex" class="horizontal-box"> 103 103 <div class="third" style="-webkit-flex: 1; -webkit-flex-order: -2147483645"></div> 104 104 <div class="first" style="-webkit-flex: 1; -webkit-flex-order: -2147483646"></div> … … 108 108 109 109 <!-- This should not crash. --> 110 <div style="display: -webkit-flex box" class="horizontal-box"></div>110 <div style="display: -webkit-flex" class="horizontal-box"></div> 111 111 112 112 <div style="position:absolute; left: -10000px;">You should see identical green bars going from light green -
trunk/LayoutTests/css3/flexbox/flex-pack.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; -
trunk/LayoutTests/css3/flexbox/flexbox-overflow-auto-expected.html
r105903 r117385 4 4 <style> 5 5 .test-row { 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 margin-bottom: 5px; 8 8 } -
trunk/LayoutTests/css3/flexbox/flexbox-overflow-auto.html
r105903 r117385 4 4 <style> 5 5 .test-row { 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 margin-bottom: 5px; 8 8 } … … 48 48 .flexbox { 49 49 border: 0 solid pink; 50 display: -webkit-flex box;50 display: -webkit-flex; 51 51 height: 100px; 52 52 width: 100px; -
trunk/LayoutTests/css3/flexbox/floated-flexbox.html
r107112 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 border: 5px solid blue; -
trunk/LayoutTests/css3/flexbox/insert-text-crash.html
r104645 r117385 1 1 <style> 2 2 #el2 { 3 display: -webkit-flex box;3 display: -webkit-flex; 4 4 border: 1px solid red; 5 5 } -
trunk/LayoutTests/css3/flexbox/line-wrapping.html
r113097 r117385 12 12 } 13 13 .flexbox { 14 display: -webkit-flex box;14 display: -webkit-flex; 15 15 background-color: gray; 16 16 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline-align.html
r113097 r117385 4 4 .flexbox { 5 5 position: relative; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: grey; 8 8 max-width: 600px; -
trunk/LayoutTests/css3/flexbox/multiline-column-auto.html
r112544 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline-line-pack-horizontal-column.html
r113097 r117385 4 4 .flexbox { 5 5 position: relative; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: grey; 8 8 width: 600px; -
trunk/LayoutTests/css3/flexbox/multiline-line-pack.html
r112544 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline-pack.html
r112544 r117385 4 4 .flexbox { 5 5 position: relative; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: grey; 8 8 max-width: 100px; -
trunk/LayoutTests/css3/flexbox/multiline-reverse-wrap-baseline.html
r113097 r117385 4 4 .flexbox { 5 5 width: 200px; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: #aaa; 8 8 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline-reverse-wrap-overflow.html
r113097 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline-shrink-to-fit.html
r112544 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 position: relative; -
trunk/LayoutTests/css3/flexbox/multiline.html
r113097 r117385 4 4 .flexbox { 5 5 position: relative; 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 background-color: grey; 8 8 max-width: 600px; -
trunk/LayoutTests/css3/flexbox/nested-stretch.html
r116038 r117385 11 11 12 12 .flexbox { 13 display: -webkit-flex box;13 display: -webkit-flex; 14 14 } 15 15 … … 19 19 20 20 .column { 21 display: -webkit-flex box;21 display: -webkit-flex; 22 22 -webkit-flex-direction: column; 23 23 } -
trunk/LayoutTests/css3/flexbox/orthogonal-flex-directions.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: #aaa; 11 11 position: relative; … … 33 33 34 34 .nested { 35 display: -webkit-flex box;35 display: -webkit-flex; 36 36 background-color: #ddd; 37 37 } -
trunk/LayoutTests/css3/flexbox/position-absolute-child.html
r113097 r117385 11 11 12 12 .flexbox { 13 display: -webkit-flex box;13 display: -webkit-flex; 14 14 background-color: #aaa; 15 15 position: relative; -
trunk/LayoutTests/css3/flexbox/preferred-widths-orthogonal.html
r107624 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: #aaa; 7 7 float: left; … … 43 43 44 44 .nested { 45 display: -webkit-flex box;45 display: -webkit-flex; 46 46 background-color: #ddd; 47 47 } -
trunk/LayoutTests/css3/flexbox/preferred-widths.html
r107624 r117385 3 3 <style> 4 4 .flexbox { 5 display: -webkit-flex box;5 display: -webkit-flex; 6 6 background-color: grey; 7 7 float: left; -
trunk/LayoutTests/css3/flexbox/repaint-rtl-column.html
r113097 r117385 4 4 <style> 5 5 #flexbox { 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 -webkit-flex-flow: column; 8 8 height: 300px; -
trunk/LayoutTests/css3/flexbox/repaint.html
r113097 r117385 4 4 <style> 5 5 #flexbox { 6 display: -webkit-flex box;6 display: -webkit-flex; 7 7 } 8 8 -
trunk/LayoutTests/css3/flexbox/true-centering.html
r107446 r117385 5 5 width: 100px; 6 6 height: 100px; 7 display: -webkit-flex box;7 display: -webkit-flex; 8 8 background-color: #aaa; 9 9 position: relative; -
trunk/LayoutTests/css3/flexbox/writing-modes.html
r113097 r117385 7 7 .flexbox { 8 8 width: 600px; 9 display: -webkit-flex box;9 display: -webkit-flex; 10 10 background-color: grey; 11 11 } … … 201 201 202 202 <div style="position: relative;"> 203 <div data-expected-width="600" style="direction: rtl; display: -webkit-flex box; margin-left: 10px; margin-right:20px;" class="flexbox">203 <div data-expected-width="600" style="direction: rtl; display: -webkit-flex; margin-left: 10px; margin-right:20px;" class="flexbox"> 204 204 <div data-expected-width="75" data-offset-x="535" style="-webkit-flex: 1 0 0; margin: 0 auto;"></div> 205 205 <div data-expected-width="350" data-offset-x="185" style="-webkit-flex: 2 0 0; padding: 0 100px;"></div> … … 209 209 210 210 <div style="position: relative;"> 211 <div data-expected-width="700" style="direction: rtl; display: -webkit-flex box; padding-left: 10px; padding-right: 20px; border-style: solid; border-left: 30px solid; border-right: 40px solid;" class="flexbox ">211 <div data-expected-width="700" style="direction: rtl; display: -webkit-flex; padding-left: 10px; padding-right: 20px; border-style: solid; border-left: 30px solid; border-right: 40px solid;" class="flexbox "> 212 212 <div data-expected-width="75" data-offset-x="565" style="-webkit-flex: 1 0 0; margin: 0 auto;"></div> 213 213 <div data-expected-width="350" data-offset-x="215" style="-webkit-flex: 2 0 0; padding: 0 100px;"></div> -
trunk/LayoutTests/fast/multicol/span/clone-flexbox.html
r108543 r117385 17 17 var div1 = document.createElement('div'); 18 18 div1.setAttribute('id', 'div1'); 19 flexbox1.style.display = '-webkit-flex box';19 flexbox1.style.display = '-webkit-flex'; 20 20 flexbox1.appendChild(document.createTextNode('a')); 21 21 flexbox1.appendChild(div1); -
trunk/Source/WebCore/ChangeLog
r117384 r117385 1 2012-05-16 Tony Chang <tony@chromium.org> 2 3 rename display:-webkit-flexbox to display:-webkit-flex 4 https://bugs.webkit.org/show_bug.cgi?id=86529 5 6 Reviewed by Eric Seidel. 7 8 Also renames -webkit-inline-flexbox to -webkit-inline-flex. 9 10 No new tests. Covered by existing tests. 11 12 * css/CSSParser.cpp: 13 (WebCore::isValidKeywordPropertyAndValue): 14 * css/CSSPrimitiveValueMappings.h: 15 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 16 * css/CSSValueKeywords.in: Update keyword values. 17 * css/StyleResolver.cpp: 18 (WebCore::StyleResolver::collectMatchingRulesForList): 19 * rendering/RenderObject.cpp: 20 (WebCore::RenderObject::createObject): 21 * rendering/RenderObject.h: 22 (RenderObject): 23 * rendering/style/RenderStyleConstants.h: Rename const values. 24 1 25 2012-05-16 Greg Billock <gbillock@google.com> 2 26 -
trunk/Source/WebCore/css/CSSParser.cpp
r116723 r117385 533 533 // inline-table | table-row-group | table-header-group | table-footer-group | table-row | 534 534 // table-column-group | table-column | table-cell | table-caption | -webkit-box | -webkit-inline-box | none | inherit 535 // -webkit-flex box | -webkit-inline-flexbox | -webkit-grid | -webkit-inline-grid536 if ((valueID >= CSSValueInline && valueID <= CSSValueWebkitInlineFlex box) || valueID == CSSValueNone)535 // -webkit-flex | -webkit-inline-flex | -webkit-grid | -webkit-inline-grid 536 if ((valueID >= CSSValueInline && valueID <= CSSValueWebkitInlineFlex) || valueID == CSSValueNone) 537 537 return true; 538 538 #if ENABLE(CSS_GRID_LAYOUT) -
trunk/Source/WebCore/css/CSSPrimitiveValueMappings.h
r115668 r117385 1112 1112 m_value.ident = CSSValueWebkitInlineBox; 1113 1113 break; 1114 case FLEX BOX:1115 m_value.ident = CSSValueWebkitFlex box;1116 break; 1117 case INLINE_FLEX BOX:1118 m_value.ident = CSSValueWebkitInlineFlex box;1114 case FLEX: 1115 m_value.ident = CSSValueWebkitFlex; 1116 break; 1117 case INLINE_FLEX: 1118 m_value.ident = CSSValueWebkitInlineFlex; 1119 1119 break; 1120 1120 #if ENABLE(CSS_GRID_LAYOUT) -
trunk/Source/WebCore/css/CSSValueKeywords.in
r115668 r117385 333 333 -webkit-box 334 334 -webkit-inline-box 335 -webkit-flex box336 -webkit-inline-flex box335 -webkit-flex 336 -webkit-inline-flex 337 337 #if defined(ENABLE_CSS_GRID_LAYOUT) && ENABLE_CSS_GRID_LAYOUT 338 338 -webkit-grid -
trunk/Source/WebCore/css/StyleResolver.cpp
r117084 r117385 1913 1913 case TABLE: 1914 1914 case BOX: 1915 case FLEX BOX:1915 case FLEX: 1916 1916 #if ENABLE(CSS_GRID_LAYOUT) 1917 1917 case GRID: … … 1928 1928 case INLINE_BOX: 1929 1929 return BOX; 1930 case INLINE_FLEX BOX:1931 return FLEX BOX;1930 case INLINE_FLEX: 1931 return FLEX; 1932 1932 #if ENABLE(CSS_GRID_LAYOUT) 1933 1933 case INLINE_GRID: -
trunk/Source/WebCore/rendering/RenderObject.cpp
r117007 r117385 191 191 case INLINE_BOX: 192 192 return new (arena) RenderDeprecatedFlexibleBox(node); 193 case FLEX BOX:194 case INLINE_FLEX BOX:193 case FLEX: 194 case INLINE_FLEX: 195 195 return new (arena) RenderFlexibleBox(node); 196 196 } -
trunk/Source/WebCore/rendering/RenderObject.h
r117007 r117385 842 842 virtual bool isStretchingChildren() const { return false; } 843 843 844 // Virtual function helper for the new FlexibleBox Layout (display: -webkit-flex box).844 // Virtual function helper for the new FlexibleBox Layout (display: -webkit-flex). 845 845 virtual bool isFlexibleBox() const { return false; } 846 846 -
trunk/Source/WebCore/rendering/style/RenderStyleConstants.h
r115668 r117385 411 411 TABLE_COLUMN_GROUP, TABLE_COLUMN, TABLE_CELL, 412 412 TABLE_CAPTION, BOX, INLINE_BOX, 413 FLEX BOX, INLINE_FLEXBOX,413 FLEX, INLINE_FLEX, 414 414 #if ENABLE(CSS_GRID_LAYOUT) 415 415 GRID, INLINE_GRID,
Note: See TracChangeset
for help on using the changeset viewer.