Changeset 140480 in webkit
- Timestamp:
- Jan 22, 2013, 3:33:18 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r140479 r140480 1 2013-01-22 Julien Chaffraix <jchaffraix@webkit.org> 2 3 [CSS Grid Layout] Add grid.css to hold the common grid testing code 4 https://bugs.webkit.org/show_bug.cgi?id=107044 5 6 Reviewed by Tony Chang. 7 8 * fast/css-grid-layout/containing-block-grids.html: 9 Removed 2 bad display: none rules that where overriden by 10 the inline style declaration. 11 12 * fast/css-grid-layout/minmax-fixed-logical-height-only.html: 13 * fast/css-grid-layout/breadth-size-resolution-grid.html: 14 * fast/css-grid-layout/calc-resolution-grid-item.html: 15 * fast/css-grid-layout/display-grid-set-get.html: 16 * fast/css-grid-layout/grid-columns-rows-get-set-multiple.html: 17 * fast/css-grid-layout/grid-columns-rows-get-set.html: 18 * fast/css-grid-layout/grid-element-padding-margin.html: 19 * fast/css-grid-layout/minmax-fixed-logical-width-only.html: 20 * fast/css-grid-layout/minmax-min-content-column-resolution-columns.html: 21 * fast/css-grid-layout/minmax-min-content-column-resolution-rows.html: 22 * fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html: 23 * fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html: 24 * fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html: 25 * fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html: 26 * fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html: 27 * fast/css-grid-layout/percent-resolution-grid-item.html: 28 * fast/css-grid-layout/place-cell-by-index.html: 29 Updated all the files above to: 30 - use grid.css. 31 - rename 'a', 'b', 'c' and 'd' to more meaningful. 32 - change the previous ids to be classes as we ended up having several divs with the same id. 33 34 * fast/css-grid-layout/resources/grid.css: Added. 35 1 36 2013-01-22 Ojan Vafai <ojan@chromium.org> 2 37 -
trunk/LayoutTests/fast/css-grid-layout/breadth-size-resolution-grid.html
r136432 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 100px 10vw; 12 11 -webkit-grid-rows: 10vh 100px; 13 12 } 14 13 15 #a { 16 background-color: blue; 17 -webkit-grid-column: 1; 18 -webkit-grid-row: 1; 14 .firstRowFirstColumn { 19 15 width: 100%; 20 16 height: 100%; 21 17 } 22 18 23 #b { 24 background-color: lime; 25 -webkit-grid-column: 2; 26 -webkit-grid-row: 1; 19 .firstRowSecondColumn { 27 20 width: 100%; 28 21 height: 100%; 29 22 } 30 23 31 #c { 32 background-color: purple; 33 -webkit-grid-column: 1; 34 -webkit-grid-row: 2; 24 .secondRowFirstColumn { 35 25 width: 100%; 36 26 height: 100%; 37 27 } 38 28 39 #d { 40 background-color: orange; 41 -webkit-grid-column: 2; 42 -webkit-grid-row: 2; 29 .secondRowSecondColumn { 43 30 width: 100%; 44 31 height: 100%; 45 }46 47 .verticalRL {48 -webkit-writing-mode: vertical-rl;49 32 } 50 33 </style> … … 55 38 56 39 <div class="grid"> 57 <div id="a" data-expected-width="100" data-expected-height="60"></div>58 <div id="b" data-expected-width="80" data-expected-height="60"></div>59 <div id="c" data-expected-width="100" data-expected-height="100"></div>60 <div id="d" data-expected-width="80" data-expected-height="100"></div>40 <div class="firstRowFirstColumn" data-expected-width="100" data-expected-height="60"></div> 41 <div class="firstRowSecondColumn" data-expected-width="80" data-expected-height="60"></div> 42 <div class="secondRowFirstColumn" data-expected-width="100" data-expected-height="100"></div> 43 <div class="secondRowSecondColumn" data-expected-width="80" data-expected-height="100"></div> 61 44 </div> 62 45 63 46 <div class="grid verticalRL"> 64 <div id="a" data-expected-width="60" data-expected-height="100"></div>65 <div id="b" data-expected-width="60" data-expected-height="80"></div>66 <div id="c" data-expected-width="100" data-expected-height="100"></div>67 <div id="d" data-expected-width="100" data-expected-height="80"></div>47 <div class="firstRowFirstColumn" data-expected-width="60" data-expected-height="100"></div> 48 <div class="firstRowSecondColumn" data-expected-width="60" data-expected-height="80"></div> 49 <div class="secondRowFirstColumn" data-expected-width="100" data-expected-height="100"></div> 50 <div class="secondRowSecondColumn" data-expected-width="100" data-expected-height="80"></div> 68 51 </div> 69 52 70 53 <div class="grid"> 71 <div id="a" class="verticalRL" data-expected-width="100" data-expected-height="60"></div>72 <div id="b" data-expected-width="80" data-expected-height="60"></div>73 <div id="c" class="verticalRL" data-expected-width="100" data-expected-height="100"></div>74 <div id="d" data-expected-width="80" data-expected-height="100"></div>54 <div class="firstRowFirstColumn" class="verticalRL" data-expected-width="100" data-expected-height="60"></div> 55 <div class="firstRowSecondColumn" data-expected-width="80" data-expected-height="60"></div> 56 <div class="secondRowFirstColumn" class="verticalRL" data-expected-width="100" data-expected-height="100"></div> 57 <div class="secondRowSecondColumn" data-expected-width="80" data-expected-height="100"></div> 75 58 </div> 76 59 -
trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html
r135965 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 100px 300px; 12 11 -webkit-grid-rows: 50px 150px; 13 12 height: 200px; 14 13 width: 400px; 15 }16 17 #a {18 background-color: blue;19 -webkit-grid-column: 1;20 -webkit-grid-row: 1;21 }22 23 #b {24 background-color: lime;25 -webkit-grid-column: 2;26 -webkit-grid-row: 1;27 }28 29 #c {30 background-color: purple;31 -webkit-grid-column: 1;32 -webkit-grid-row: 2;33 }34 35 #d {36 background-color: orange;37 -webkit-grid-column: 2;38 -webkit-grid-row: 2;39 14 } 40 15 … … 53 28 height: -webkit-calc(70% + 30%); 54 29 } 55 56 .verticalRL {57 -webkit-writing-mode: vertical-rl;58 }59 30 </style> 60 31 <script src="../../resources/check-layout.js"></script> … … 64 35 65 36 <div class="grid"> 66 <div id="a" class="calcWidth" data-expected-width="100" data-expected-height="15"></div>67 <div id="b" class="calcHeight" data-expected-width="15" data-expected-height="60"></div>68 <div id="c" class="calcHeightAndWidth" data-expected-width="100" data-expected-height="150"></div>69 <div id="d" class="calcHeightAndWidth" data-expected-width="260" data-expected-height="150"></div>37 <div class="firstRowFirstColumn calcWidth" data-expected-width="100" data-expected-height="15"></div> 38 <div class="firstRowSecondColumn calcHeight" data-expected-width="15" data-expected-height="60"></div> 39 <div class="secondRowFirstColumn calcHeightAndWidth" data-expected-width="100" data-expected-height="150"></div> 40 <div class="secondRowSecondColumn calcHeightAndWidth" data-expected-width="260" data-expected-height="150"></div> 70 41 </div> 71 42 72 43 <div class="grid verticalRL"> 73 <div id="a" class="calcWidth" data-expected-width="50" data-expected-height="15"></div>74 <div id="b" class="calcHeight" data-expected-width="15" data-expected-height="260"></div>75 <div id="c" class="calcHeightAndWidth" data-expected-width="140" data-expected-height="100"></div>76 <div id="d" class="calcHeightAndWidth" data-expected-width="140" data-expected-height="300"></div>44 <div class="firstRowFirstColumn calcWidth" data-expected-width="50" data-expected-height="15"></div> 45 <div class="firstRowSecondColumn calcHeight" data-expected-width="15" data-expected-height="260"></div> 46 <div class="secondRowFirstColumn calcHeightAndWidth" data-expected-width="140" data-expected-height="100"></div> 47 <div class="secondRowSecondColumn calcHeightAndWidth" data-expected-width="140" data-expected-height="300"></div> 77 48 </div> 78 49 79 50 <div class="grid"> 80 <div id="a" class="calcWidth verticalRL" data-expected-width="100" data-expected-height="15"></div>81 <div id="b" class="calcHeight verticalRL" data-expected-width="15" data-expected-height="60"></div>82 <div id="c" class="calcHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div>83 <div id="d" class="calcHeightAndWidth verticalRL" data-expected-width="260" data-expected-height="150"></div>51 <div class="firstRowFirstColumn calcWidth verticalRL" data-expected-width="100" data-expected-height="15"></div> 52 <div class="firstRowSecondColumn calcHeight verticalRL" data-expected-width="15" data-expected-height="60"></div> 53 <div class="secondRowFirstColumn calcHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div> 54 <div class="secondRowSecondColumn calcHeightAndWidth verticalRL" data-expected-width="260" data-expected-height="150"></div> 84 55 </div> 85 56 86 57 <div class="grid"> 87 <div id="a" class="calcWidth verticalRL" data-expected-width="100" data-expected-height="15"></div>88 <div id="b" class="calcHeight" data-expected-width="15" data-expected-height="60"></div>89 <div id="c" class="calcHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div>90 <div id="d" class="calcHeightAndWidth" data-expected-width="260" data-expected-height="150"></div>58 <div class="firstRowFirstColumn calcWidth verticalRL" data-expected-width="100" data-expected-height="15"></div> 59 <div class="firstRowSecondColumn calcHeight" data-expected-width="15" data-expected-height="60"></div> 60 <div class="secondRowFirstColumn calcHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div> 61 <div class="secondRowSecondColumn calcHeightAndWidth" data-expected-width="260" data-expected-height="150"></div> 91 62 </div> 92 63 </body> -
trunk/LayoutTests/fast/css-grid-layout/containing-block-grids.html
r122747 r140480 6 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 7 7 </script> 8 <link href="resources/grid.css" rel="stylesheet"> 8 9 <style> 9 10 div { width: 100px; height: 100px; } 10 .relative-positioned-grid { display: none;background-color: red; position:relative; }11 .relative-positioned-inline-grid { display: none;background-color: red; position: relative; }11 .relative-positioned-grid { background-color: red; position:relative; } 12 .relative-positioned-inline-grid { background-color: red; position: relative; } 12 13 </style> 13 14 </head> 14 15 <body> 15 16 <p>Grids can act as containing blocks for positioned content.</p> 16 <div class="relative-positioned-grid " style="display: -webkit-grid"><div style="background-color: green; left: 0; top: 0"></div></div>17 <div class="relative-positioned-inline-grid " style="display: -webkit-inline-grid"><div style="background-color:green; left: 0; top: 0"></div></div>17 <div class="relative-positioned-grid grid"><div style="background-color: green; left: 0; top: 0"></div></div> 18 <div class="relative-positioned-inline-grid inline-grid"><div style="background-color:green; left: 0; top: 0"></div></div> 18 19 </body> 19 20 </html> -
trunk/LayoutTests/fast/css-grid-layout/display-grid-set-get.html
r121464 r140480 6 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 7 7 </script> 8 <style> 9 .grid { display: -webkit-grid; } 10 .inlineGrid { display: -webkit-inline-grid; } 11 </style> 8 <link href="resources/grid.css" rel="stylesheet"> 12 9 <script src="../js/resources/js-test-pre.js"></script> 13 10 </head> 14 11 <body> 15 12 <div class="grid" id="gridElement"></div> 16 <div class="inline Grid" id="inlineGridElement"></div>13 <div class="inline-grid" id="inlineGridElement"></div> 17 14 <script src="resources/display-grid-set-get.js"></script> 18 15 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html
r137478 r140480 6 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 7 7 </script> 8 <link href="resources/grid.css" rel="stylesheet"> 8 9 <style> 9 10 .gridWithFixed { 10 display: -webkit-grid;11 11 -webkit-grid-columns: 7px 11px; 12 12 -webkit-grid-rows: 17px 2px; … … 14 14 15 15 .gridWithPercent { 16 display: -webkit-grid;17 16 -webkit-grid-columns: 53% 99%; 18 17 -webkit-grid-rows: 27% 52%; 19 18 } 20 19 .gridWithAuto { 21 display: -webkit-grid;22 20 -webkit-grid-columns: auto auto; 23 21 -webkit-grid-rows: auto auto; 24 22 } 25 23 .gridWithEM { 26 display: -webkit-grid;27 24 -webkit-grid-columns: 10em 12em; 28 25 -webkit-grid-rows: 15em 17em; … … 30 27 } 31 28 .gridWithNoneAndAuto { 32 display: -webkit-grid;33 29 -webkit-grid-columns: none auto; 34 30 -webkit-grid-rows: none auto; 35 31 } 36 32 .gridNoneWithAndFixed { 37 display: -webkit-grid;38 33 -webkit-grid-columns: none 15px; 39 34 -webkit-grid-rows: none 22px; 40 35 } 41 36 .gridWithThreeItems { 42 display: -webkit-grid;43 37 -webkit-grid-columns: 15px auto 10em; 44 38 -webkit-grid-rows: 12em 18px auto; … … 46 40 } 47 41 .gridWithPercentAndViewportPercent { 48 display: -webkit-grid;49 42 -webkit-grid-columns: 50% 15vw; 50 43 -webkit-grid-rows: 35% 28vh; 51 44 } 52 45 .gridWithFitContentAndFitAvailable { 53 display: -webkit-grid;54 46 -webkit-grid-columns: -webkit-content-available; 55 47 -webkit-grid-rows: -webkit-fitcontent -webkit-fit-available; 56 48 } 57 49 .gridWithMinMaxContent { 58 display: -webkit-grid;59 50 -webkit-grid-columns: -webkit-min-content -webkit-max-content; 60 51 -webkit-grid-rows: -webkit-max-content -webkit-min-content; 61 52 } 62 53 .gridWithMinMaxAndFixed { 63 display: -webkit-grid;64 54 -webkit-grid-columns: minmax(45px, 30%) 15px; 65 55 -webkit-grid-rows: 12em minmax(35%, 10px); … … 67 57 } 68 58 .gridWithMinMaxAndMinMaxContent { 69 display: -webkit-grid;70 59 -webkit-grid-columns: minmax(-webkit-min-content, 30%) 15px; 71 60 -webkit-grid-rows: 12em minmax(35%, -webkit-max-content); … … 76 65 </head> 77 66 <body> 78 <div class="grid WithFixed" id="gridWithFixedElement"></div>79 <div class="grid WithPercent" id="gridWithPercentElement"></div>80 <div class="grid WithAuto" id="gridWithAutoElement"></div>81 <div class="grid WithEM" id="gridWithEMElement"></div>82 <div class="grid WithNoneAndAuto" id="gridWithNoneAndAuto"></div>83 <div class="grid WithNoneAndFixed" id="gridWithNoneAndFixed"></div>84 <div class="grid WithThreeItems" id="gridWithThreeItems"></div>85 <div class="grid WithPercentAndViewportPercent" id="gridWithPercentAndViewportPercent"></div>86 <div class="grid WithFitContentAndFitAvailable" id="gridWithFitContentAndFitAvailable"></div>87 <div class="grid WithMinMaxContent" id="gridWithMinMaxContent"></div>88 <div class="grid WithMinMaxAndFixed" id="gridWithMinMaxAndFixed"></div>89 <div class="grid WithMinMaxAndMinMaxContent" id="gridWithMinMaxAndMinMaxContent"></div>67 <div class="grid gridWithFixed" id="gridWithFixedElement"></div> 68 <div class="grid gridWithPercent" id="gridWithPercentElement"></div> 69 <div class="grid gridWithAuto" id="gridWithAutoElement"></div> 70 <div class="grid gridWithEM" id="gridWithEMElement"></div> 71 <div class="grid gridWithNoneAndAuto" id="gridWithNoneAndAuto"></div> 72 <div class="grid gridWithNoneAndFixed" id="gridWithNoneAndFixed"></div> 73 <div class="grid gridWithThreeItems" id="gridWithThreeItems"></div> 74 <div class="grid gridWithPercentAndViewportPercent" id="gridWithPercentAndViewportPercent"></div> 75 <div class="grid gridWithFitContentAndFitAvailable" id="gridWithFitContentAndFitAvailable"></div> 76 <div class="grid gridWithMinMaxContent" id="gridWithMinMaxContent"></div> 77 <div class="grid gridWithMinMaxAndFixed" id="gridWithMinMaxAndFixed"></div> 78 <div class="grid gridWithMinMaxAndMinMaxContent" id="gridWithMinMaxAndMinMaxContent"></div> 90 79 <script src="resources/grid-columns-rows-get-set-multiple.js"></script> 91 80 <script src="../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html
r137478 r140480 6 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 7 7 </script> 8 <link href="resources/grid.css" rel="stylesheet"> 8 9 <style> 9 .grid {10 display: -webkit-grid;11 }12 10 .gridWithNone { 13 11 -webkit-grid-columns: none; -
trunk/LayoutTests/fast/css-grid-layout/grid-element-padding-margin.html
r137560 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 100px; 12 11 -webkit-grid-rows: 50px; … … 23 22 border-color: green; 24 23 border-width: 10px 20px 30px 40px; 25 }26 27 .verticalRL {28 -webkit-writing-mode: vertical-rl;29 24 } 30 25 </style> -
trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html
r139025 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 width: 100px; 12 11 height: 200px; … … 49 48 } 50 49 51 #a { 52 background-color: blue; 53 -webkit-grid-column: 1; 54 -webkit-grid-row: 1; 50 .firstRowFirstColumn { 55 51 width: 100%; 56 52 height: 100%; 57 53 } 58 54 59 #b { 60 background-color: green; 61 -webkit-grid-column: 1; 62 -webkit-grid-row: 2; 55 .secondRowFirstColumn { 63 56 width: 100%; 64 57 height: 100%; 65 58 } 66 67 59 </style> 68 60 <script src="../../resources/check-layout.js"></script> … … 73 65 74 66 <div class="grid" id="grid1" data-expected-width="100" data-expected-height="200"> 75 <div id="a" data-expected-height="40" data-expected-width="30"></div>76 <div id="b" data-expected-height="160" data-expected-width="30"></div>67 <div class="firstRowFirstColumn" data-expected-height="40" data-expected-width="30"></div> 68 <div class="secondRowFirstColumn" data-expected-height="160" data-expected-width="30"></div> 77 69 </div> 78 70 79 71 <div class="grid" id="grid2" data-expected-width="100" data-expected-height="200"> 80 <div id="a" data-expected-height="120" data-expected-width="30"></div>81 <div id="b" data-expected-height="80" data-expected-width="30"></div>72 <div class="firstRowFirstColumn" data-expected-height="120" data-expected-width="30"></div> 73 <div class="secondRowFirstColumn" data-expected-height="80" data-expected-width="30"></div> 82 74 </div> 83 75 84 76 <div class="grid" id="grid3" data-expected-width="100" data-expected-height="200"> 85 <div id="a" data-expected-height="90" data-expected-width="30"></div>86 <div id="b" data-expected-height="110" data-expected-width="30"></div>77 <div class="firstRowFirstColumn" data-expected-height="90" data-expected-width="30"></div> 78 <div class="secondRowFirstColumn" data-expected-height="110" data-expected-width="30"></div> 87 79 </div> 88 80 89 81 <div class="grid" id="grid4" data-expected-width="100" data-expected-height="200"> 90 <div id="a" data-expected-height="30" data-expected-width="40"></div>91 <div id="b" data-expected-height="30" data-expected-width="60"></div>82 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div> 83 <div class="secondRowFirstColumn" data-expected-height="30" data-expected-width="60"></div> 92 84 </div> 93 85 94 86 <div class="grid" id="grid5" data-expected-width="100" data-expected-height="200"> 95 <div id="a" data-expected-height="30" data-expected-width="90"></div>96 <div id="b" data-expected-height="30" data-expected-width="10"></div>87 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="90"></div> 88 <div class="secondRowFirstColumn" data-expected-height="30" data-expected-width="10"></div> 97 89 </div> 98 90 99 91 <div class="grid" id="grid6" data-expected-width="100" data-expected-height="200"> 100 <div id="a" data-expected-height="90" data-expected-width="30"></div>101 <div id="b" data-expected-height="110" data-expected-width="30"></div>92 <div class="firstRowFirstColumn" data-expected-height="90" data-expected-width="30"></div> 93 <div class="secondRowFirstColumn" data-expected-height="110" data-expected-width="30"></div> 102 94 </div> 103 95 -
trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html
r139025 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 width: 100px; 12 11 height: 200px; … … 50 49 } 51 50 52 #a { 53 background-color: blue; 54 -webkit-grid-column: 1; 55 -webkit-grid-row: 1; 51 .firstRowFirstColumn { 56 52 width: 100%; 57 53 height: 100%; 58 54 } 59 55 60 #b { 61 background-color: green; 62 -webkit-grid-column: 2; 63 -webkit-grid-row: 1; 56 .firstRowSecondColumn { 64 57 width: 100%; 65 58 height: 100%; 66 59 } 67 68 60 </style> 69 61 <script src="../../resources/check-layout.js"></script> … … 74 66 75 67 <div class="grid" id="grid1" data-expected-width="100" data-expected-height="200"> 76 <div id="a" data-expected-height="30" data-expected-width="40"></div>77 <div id="b" data-expected-height="30" data-expected-width="60"></div>68 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div> 69 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="60"></div> 78 70 </div> 79 71 80 72 <div class="grid" id="grid2" data-expected-width="100" data-expected-height="200"> 81 <div id="a" data-expected-height="30" data-expected-width="60"></div>82 <div id="b" data-expected-height="30" data-expected-width="40"></div>73 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="60"></div> 74 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="40"></div> 83 75 </div> 84 76 85 77 <div class="grid" id="grid3" data-expected-width="100" data-expected-height="200"> 86 <div id="a" data-expected-height="30" data-expected-width="50"></div>87 <div id="b" data-expected-height="30" data-expected-width="50"></div>78 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="50"></div> 79 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="50"></div> 88 80 </div> 89 81 90 82 <div class="grid" id="grid4" data-expected-width="100" data-expected-height="200"> 91 <div id="a" data-expected-height="40" data-expected-width="30"></div>92 <div id="b" data-expected-height="160" data-expected-width="30"></div>83 <div class="firstRowFirstColumn" data-expected-height="40" data-expected-width="30"></div> 84 <div class="firstRowSecondColumn" data-expected-height="160" data-expected-width="30"></div> 93 85 </div> 94 86 95 87 <div class="grid" id="grid5" data-expected-width="100" data-expected-height="200"> 96 <div id="a" data-expected-height="100" data-expected-width="30"></div>97 <div id="b" data-expected-height="100" data-expected-width="30"></div>88 <div class="firstRowFirstColumn" data-expected-height="100" data-expected-width="30"></div> 89 <div class="firstRowSecondColumn" data-expected-height="100" data-expected-width="30"></div> 98 90 </div> 99 91 100 92 <div class="grid" id="grid6" data-expected-width="100" data-expected-height="200"> 101 <div id="a" data-expected-height="30" data-expected-width="40"></div>102 <div id="b" data-expected-height="30" data-expected-width="60"></div>93 <div class="firstRowFirstColumn" data-expected-height="30" data-expected-width="40"></div> 94 <div class="firstRowSecondColumn" data-expected-height="30" data-expected-width="60"></div> 103 95 </div> 104 96 -
trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-columns.html
r140198 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .gridMinMinContent { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: minmax(-webkit-min-content, 40px); 12 11 -webkit-grid-rows: 50px; … … 14 13 15 14 .gridMaxMinContent { 16 display: -webkit-grid;17 background-color: grey;18 15 -webkit-grid-columns: minmax(30px, -webkit-min-content); 19 16 -webkit-grid-rows: 20px; … … 26 23 } 27 24 28 #a { 29 background-color: blue; 30 -webkit-grid-column: 1; 31 -webkit-grid-row: 1; 25 .firstRowFirstColumn { 32 26 font: 10px/1 Ahem; 33 27 /* Make us fit our grid area. */ … … 42 36 43 37 <div class="constrainedContainer"> 44 <div class="grid MinMinContent">45 <div id="a" data-expected-width="30" data-expected-height="50">XXX XXX XXX</div>38 <div class="grid gridMinMinContent"> 39 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="50">XXX XXX XXX</div> 46 40 </div> 47 41 </div> 48 42 49 43 <div class="constrainedContainer"> 50 <div class="grid MinMinContent">44 <div class="grid gridMinMinContent"> 51 45 <!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --> 52 <div id="a" data-expected-width="50" data-expected-height="50">XXXXX XXXXX XXXXX XXXXX</div>46 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="50">XXXXX XXXXX XXXXX XXXXX</div> 53 47 </div> 54 48 </div> 55 49 56 50 <div class="constrainedContainer"> 57 <div class="grid MinMinContent">58 <div id="a" data-expected-width="20" data-expected-height="50">XX XX XX XX XX XX</div>51 <div class="grid gridMinMinContent"> 52 <div class="firstRowFirstColumn" data-expected-width="20" data-expected-height="50">XX XX XX XX XX XX</div> 59 53 </div> 60 54 </div> … … 62 56 <!-- Allow the extra logical space distribution to occur. --> 63 57 <div style="width: 40px; height: 10px"> 64 <div class="grid MinMinContent">65 <div id="a" data-expected-width="40" data-expected-height="50">XX XX XX XX XX XX</div>58 <div class="grid gridMinMinContent"> 59 <div class="firstRowFirstColumn" data-expected-width="40" data-expected-height="50">XX XX XX XX XX XX</div> 66 60 </div> 67 61 </div> 68 62 69 63 <div style="width: 100px; height: 10px;"> 70 <div class="grid MinMinContent">64 <div class="grid gridMinMinContent"> 71 65 <!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --> 72 <div id="a" data-expected-width="50" data-expected-height="50">XXXXX XXXXX XXXXX XXXXX</div>66 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="50">XXXXX XXXXX XXXXX XXXXX</div> 73 67 </div> 74 68 </div> 75 69 76 70 <div class="constrainedContainer"> 77 <div class="grid MaxMinContent">78 <div id="a" data-expected-width="30" data-expected-height="20">XXX XXX XXX</div>71 <div class="grid gridMaxMinContent"> 72 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="20">XXX XXX XXX</div> 79 73 </div> 80 74 </div> 81 75 82 76 <div class="constrainedContainer"> 83 <div class="grid MaxMinContent">84 <div id="a" data-expected-width="30" data-expected-height="20">XXXXX XXXXX XXXXX XXXXX</div>77 <div class="grid gridMaxMinContent"> 78 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="20">XXXXX XXXXX XXXXX XXXXX</div> 85 79 </div> 86 80 </div> 87 81 88 82 <div class="constrainedContainer"> 89 <div class="grid MaxMinContent">90 <div id="a" data-expected-width="30" data-expected-height="20">XX XX XX XX XX XX</div>83 <div class="grid gridMaxMinContent"> 84 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="20">XX XX XX XX XX XX</div> 91 85 </div> 92 86 </div> … … 95 89 96 90 <div style="width: 100px; height: 20px"> 97 <div class="grid MaxMinContent">98 <div id="a" data-expected-width="50" data-expected-height="20">XXXXX XXXXX XXXXX XXXXX</div>91 <div class="grid gridMaxMinContent"> 92 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="20">XXXXX XXXXX XXXXX XXXXX</div> 99 93 </div> 100 94 </div> 101 95 102 96 <div style="width: 100px; height: 20px"> 103 <div class="grid MaxMinContent">97 <div class="grid gridMaxMinContent"> 104 98 <!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --> 105 <div id="a" data-expected-width="30" data-expected-height="20">XX XX XX XX XX XX</div>99 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="20">XX XX XX XX XX XX</div> 106 100 </div> 107 101 </div> -
trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-rows.html
r140198 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .gridMinMinContent { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 30px; 12 11 -webkit-grid-rows: minmax(-webkit-min-content, 40px); … … 14 13 15 14 .gridMaxMinContent { 16 display: -webkit-grid;17 background-color: grey;18 15 -webkit-grid-columns: 30px; 19 16 -webkit-grid-rows: minmax(30px, -webkit-min-content); … … 26 23 } 27 24 28 #a { 29 background-color: blue; 30 -webkit-grid-column: 1; 31 -webkit-grid-row: 1; 25 .firstRowFirstColumn { 32 26 font: 10px/1 Ahem; 33 27 /* Make us fit our grid area. */ … … 42 36 43 37 <div class="constrainedContainer"> 44 <div class="grid MinMinContent">45 <div id="a" data-expected-width="30" data-expected-height="20">XXX XXX</div>38 <div class="grid gridMinMinContent"> 39 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="20">XXX XXX</div> 46 40 </div> 47 41 </div> 48 42 49 43 <div class="constrainedContainer"> 50 <div class="grid MinMinContent">51 <div id="a" data-expected-width="30" data-expected-height="40">XXX XXX XXX XXX</div>44 <div class="grid gridMinMinContent"> 45 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="40">XXX XXX XXX XXX</div> 52 46 </div> 53 47 </div> 54 48 55 49 <div class="constrainedContainer"> 56 <div class="grid MinMinContent">57 <div id="a" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div>50 <div class="grid gridMinMinContent"> 51 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div> 58 52 </div> 59 53 </div> … … 61 55 <!-- Allow the extra logical space distribution to occur. --> 62 56 <div style="width: 30px; height: 100px"> 63 <div class="grid MinMinContent">64 <div id="a" data-expected-width="30" data-expected-height="40">XXX XXX</div>57 <div class="grid gridMinMinContent"> 58 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="40">XXX XXX</div> 65 59 </div> 66 60 </div> 67 61 68 62 <div style="width: 30px; height: 100px"> 69 <div class="grid MinMinContent">70 <div id="a" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div>63 <div class="grid gridMinMinContent"> 64 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div> 71 65 </div> 72 66 </div> 73 67 74 68 <div class="constrainedContainer"> 75 <div class="grid MaxMinContent">69 <div class="grid gridMaxMinContent"> 76 70 <!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --> 77 <div id="a" data-expected-width="30" data-expected-height="30">XXX XXX</div>71 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="30">XXX XXX</div> 78 72 </div> 79 73 </div> 80 74 81 75 <div class="constrainedContainer"> 82 <div class="grid MaxMinContent">83 <div id="a" data-expected-width="30" data-expected-height="30">XXX XXX XXX</div>76 <div class="grid gridMaxMinContent"> 77 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="30">XXX XXX XXX</div> 84 78 </div> 85 79 </div> … … 88 82 89 83 <div style="width: 30px; height: 100px"> 90 <div class="grid MaxMinContent">91 <div id="a" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div>84 <div class="grid gridMaxMinContent"> 85 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="60">XX XX XX XX XX XX</div> 92 86 </div> 93 87 </div> 94 88 95 89 <div style="width: 30px; height: 100px"> 96 <div class="grid MaxMinContent">90 <div class="grid gridMaxMinContent"> 97 91 <!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --> 98 <div id="a" data-expected-width="30" data-expected-height="30">XXX XXX</div>92 <div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="30">XXX XXX</div> 99 93 </div> 100 94 </div> -
trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html
r135965 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .container { … … 13 14 14 15 .grid { 15 display: -webkit-grid;16 16 -webkit-grid-columns: 40% 60%; 17 17 -webkit-grid-rows: 30% 70%; 18 background-color: grey;19 18 width: 80%; 20 19 height: 50%; 21 20 } 22 21 23 #a { 24 background-color: blue; 25 -webkit-grid-column: 1; 26 -webkit-grid-row: 1; 22 .firstRowFirstColumn { 27 23 width: 100%; 28 24 height: 15px; 29 25 } 30 #b { 31 background-color: green; 32 -webkit-grid-column: 2; 33 -webkit-grid-row: 1; 26 27 .firstRowSecondColumn { 34 28 width: 15px; 35 29 height: 100%; 36 30 } 37 #c { 38 background-color: red; 39 -webkit-grid-column: 1; 40 -webkit-grid-row: 2; 31 32 .secondRowFirstColumn { 41 33 width: 50%; 42 34 height: 50%; 43 35 } 44 #d { 45 background-color: orange; 46 -webkit-grid-column: 2; 47 -webkit-grid-row: 2; 36 37 .secondRowSecondColumn { 48 38 width: -webkit-calc(100%); 49 39 height: -webkit-calc(100%); … … 57 47 <div class="container"> 58 48 <div class="grid" data-expected-width="400" data-expected-height="300"> 59 <div id="a" data-expected-width="160" data-expected-height="15"></div>60 <div id="b" data-expected-width="15" data-expected-height="90"></div>61 <div id="c" data-expected-width="80" data-expected-height="105"></div>62 <div id="d" data-expected-width="240" data-expected-height="210"></div>49 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 50 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 51 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="105"></div> 52 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="210"></div> 63 53 </div> 64 54 </div> … … 66 56 <div class="container"> 67 57 <div class="grid" style="-webkit-writing-mode: horizontal-bt" data-expected-width="400" data-expected-height="300"> 68 <div id="a" data-expected-width="160" data-expected-height="15"></div>69 <div id="b" data-expected-width="15" data-expected-height="90"></div>70 <div id="c" data-expected-width="80" data-expected-height="105"></div>71 <div id="d" data-expected-width="240" data-expected-height="210"></div>58 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 59 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 60 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="105"></div> 61 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="210"></div> 72 62 </div> 73 63 </div> … … 75 65 <div class="container"> 76 66 <div class="grid" style="-webkit-writing-mode: vertical-rl;" data-expected-width="400" data-expected-height="300"> 77 <div id="a" data-expected-width="120" data-expected-height="15"></div>78 <div id="b" data-expected-width="15" data-expected-height="180"></div>79 <div id="c" data-expected-width="140" data-expected-height="60"></div>80 <div id="d" data-expected-width="280" data-expected-height="180"></div>67 <div class="firstRowFirstColumn" data-expected-width="120" data-expected-height="15"></div> 68 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="180"></div> 69 <div class="secondRowFirstColumn" data-expected-width="140" data-expected-height="60"></div> 70 <div class="secondRowSecondColumn" data-expected-width="280" data-expected-height="180"></div> 81 71 </div> 82 72 </div> … … 84 74 <div class="container"> 85 75 <div class="grid" style="-webkit-writing-mode: vertical-lr;" data-expected-width="400" data-expected-height="300"> 86 <div id="a" data-expected-width="120" data-expected-height="15"></div>87 <div id="b" data-expected-width="15" data-expected-height="180"></div>88 <div id="c" data-expected-width="140" data-expected-height="60"></div>89 <div id="d" data-expected-width="280" data-expected-height="180"></div>76 <div class="firstRowFirstColumn" data-expected-width="120" data-expected-height="15"></div> 77 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="180"></div> 78 <div class="secondRowFirstColumn" data-expected-width="140" data-expected-height="60"></div> 79 <div class="secondRowSecondColumn" data-expected-width="280" data-expected-height="180"></div> 90 80 </div> 91 81 </div> -
trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html
r140045 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 10 -webkit-grid-columns: 70% 30%; 11 11 -webkit-grid-rows: 40% 60%; 12 background-color: grey;13 12 width: 400px; 14 13 height: 300px; 15 14 } 16 15 17 #a { 18 background-color: blue; 19 -webkit-grid-column: 1; 20 -webkit-grid-row: 1; 16 .firstRowFirstColumn { 21 17 width: 100%; 22 18 height: 15px; 23 19 } 24 #b { 25 background-color: green; 26 -webkit-grid-column: 2; 27 -webkit-grid-row: 1; 20 21 .firstRowSecondColumn { 28 22 width: 15px; 29 23 height: 100%; 30 24 } 31 #c { 32 background-color: purple; 33 -webkit-grid-column: 1; 34 -webkit-grid-row: 2; 25 26 .secondRowFirstColumn { 35 27 width: 50%; 36 28 height: 50%; 37 29 } 38 #d { 39 background-color: orange; 40 -webkit-grid-column: 2; 41 -webkit-grid-row: 2; 30 31 .secondRowSecondColumn { 42 32 width: -webkit-calc(100%); 43 33 height: -webkit-calc(100%); … … 69 59 <div style="position: relative"> 70 60 <div class="grid" data-expected-width="400" data-expected-height="300"> 71 <div id="a" data-expected-width="160" data-expected-height="15"></div>72 <div id="b" data-expected-width="15" data-expected-height="120"></div>73 <div id="c" data-expected-width="80" data-expected-height="90"></div>74 <div id="d" data-expected-width="240" data-expected-height="180"></div>61 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 62 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="120"></div> 63 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="90"></div> 64 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="180"></div> 75 65 </div> 76 66 </div> … … 78 68 <div style="position: relative"> 79 69 <div class="grid" data-expected-width="400" data-expected-height="300"> 80 <div id="a" data-expected-width="280" data-expected-height="15"></div>81 <div id="b" data-expected-width="15" data-expected-height="90"></div>82 <div id="c" data-expected-width="140" data-expected-height="105"></div>83 <div id="d" data-expected-width="120" data-expected-height="210"></div>70 <div class="firstRowFirstColumn" data-expected-width="280" data-expected-height="15"></div> 71 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 72 <div class="secondRowFirstColumn" data-expected-width="140" data-expected-height="105"></div> 73 <div class="secondRowSecondColumn" data-expected-width="120" data-expected-height="210"></div> 84 74 </div> 85 75 </div> … … 87 77 <div style="position: relative"> 88 78 <div class="grid" data-expected-width="400" data-expected-height="300"> 89 <div id="a" data-expected-width="160" data-expected-height="15"></div>90 <div id="b" data-expected-width="15" data-expected-height="90"></div>91 <div id="c" data-expected-width="80" data-expected-height="105"></div>92 <div id="d" data-expected-width="240" data-expected-height="210"></div>79 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 80 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 81 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="105"></div> 82 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="210"></div> 93 83 </div> 94 84 </div> -
trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html
r135965 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 10 -webkit-grid-columns: 40% 60%; 11 11 -webkit-grid-rows: 30% 70%; 12 background-color: grey;13 12 width: 400px; 14 13 height: 300px; 15 14 } 16 15 17 #a { 18 background-color: blue; 19 -webkit-grid-column: 1; 20 -webkit-grid-row: 1; 16 .firstRowFirstColumn { 21 17 width: 100%; 22 18 height: 15px; 23 19 } 24 #b { 25 background-color: green; 26 -webkit-grid-column: 2; 27 -webkit-grid-row: 1; 20 21 .firstRowSecondColumn { 28 22 width: 15px; 29 23 height: 100%; 30 24 } 31 #c { 32 background-color: red; 33 -webkit-grid-column: 1; 34 -webkit-grid-row: 2; 25 26 .secondRowFirstColumn { 35 27 width: 50%; 36 28 height: 50%; 37 29 } 38 #d { 39 background-color: orange; 40 -webkit-grid-column: 2; 41 -webkit-grid-row: 2; 30 31 .secondRowSecondColumn { 42 32 width: -webkit-calc(100%); 43 33 height: -webkit-calc(100%); … … 51 41 <div style="position: relative"> 52 42 <div class="grid" data-expected-width="400" data-expected-height="300"> 53 <div id="a" data-expected-width="160" data-expected-height="15"></div>54 <div id="b" data-expected-width="15" data-expected-height="90"></div>55 <div id="c" data-expected-width="80" data-expected-height="105"></div>56 <div id="d" data-expected-width="240" data-expected-height="210"></div>43 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 44 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 45 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="105"></div> 46 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="210"></div> 57 47 </div> 58 48 </div> … … 60 50 <div style="position: relative"> 61 51 <div class="grid" style="-webkit-writing-mode: horizontal-bt" data-expected-width="400" data-expected-height="300"> 62 <div id="a" data-expected-width="160" data-expected-height="15"></div>63 <div id="b" data-expected-width="15" data-expected-height="90"></div>64 <div id="c" data-expected-width="80" data-expected-height="105"></div>65 <div id="d" data-expected-width="240" data-expected-height="210"></div>52 <div class="firstRowFirstColumn" data-expected-width="160" data-expected-height="15"></div> 53 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="90"></div> 54 <div class="secondRowFirstColumn" data-expected-width="80" data-expected-height="105"></div> 55 <div class="secondRowSecondColumn" data-expected-width="240" data-expected-height="210"></div> 66 56 </div> 67 57 </div> … … 69 59 <div style="position: relative"> 70 60 <div class="grid" style="-webkit-writing-mode: vertical-rl;" data-expected-width="400" data-expected-height="300"> 71 <div id="a" data-expected-width="120" data-expected-height="15"></div>72 <div id="b" data-expected-width="15" data-expected-height="180"></div>73 <div id="c" data-expected-width="140" data-expected-height="60"></div>74 <div id="d" data-expected-width="280" data-expected-height="180"></div>61 <div class="firstRowFirstColumn" data-expected-width="120" data-expected-height="15"></div> 62 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="180"></div> 63 <div class="secondRowFirstColumn" data-expected-width="140" data-expected-height="60"></div> 64 <div class="secondRowSecondColumn" data-expected-width="280" data-expected-height="180"></div> 75 65 </div> 76 66 </div> … … 78 68 <div style="position: relative"> 79 69 <div class="grid" style="-webkit-writing-mode: vertical-lr;" data-expected-width="400" data-expected-height="300"> 80 <div id="a" data-expected-width="120" data-expected-height="15"></div>81 <div id="b" data-expected-width="15" data-expected-height="180"></div>82 <div id="c" data-expected-width="140" data-expected-height="60"></div>83 <div id="d" data-expected-width="280" data-expected-height="180"></div>70 <div class="firstRowFirstColumn" data-expected-width="120" data-expected-height="15"></div> 71 <div class="firstRowSecondColumn" data-expected-width="15" data-expected-height="180"></div> 72 <div class="secondRowFirstColumn" data-expected-width="140" data-expected-height="60"></div> 73 <div class="secondRowSecondColumn" data-expected-width="280" data-expected-height="180"></div> 84 74 </div> 85 75 </div> -
trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html
r140045 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 200px 200px; 12 11 -webkit-grid-rows: 100px 100px; 13 12 height: 200px; 14 13 width: 400px; 15 }16 17 #a {18 background-color: blue;19 -webkit-grid-column: 1;20 -webkit-grid-row: 1;21 }22 23 #b {24 background-color: lime;25 -webkit-grid-column: 2;26 -webkit-grid-row: 1;27 }28 29 #c {30 background-color: purple;31 -webkit-grid-column: 1;32 -webkit-grid-row: 2;33 }34 35 #d {36 background-color: orange;37 -webkit-grid-column: 2;38 -webkit-grid-row: 2;39 14 } 40 15 … … 57 32 margin: 20%; 58 33 } 59 60 .verticalRL {61 -webkit-writing-mode: vertical-rl;62 }63 34 </style> 64 35 <script src="../../resources/check-layout.js"></script> … … 79 50 80 51 <div class="grid"> 81 <div id="a" class="percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div>82 <div id="b" class="percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div>83 <div id="c" class="percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div>84 <div id="d" class="percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div>52 <div class="firstRowFirstColumn percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div> 53 <div class="firstRowSecondColumn percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div> 54 <div class="secondRowFirstColumn percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div> 55 <div class="secondRowSecondColumn percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div> 85 56 </div> 86 57 -
trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html
r136465 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 100px 300px; 12 11 -webkit-grid-rows: 50px 150px; 13 12 height: 200px; 14 13 width: 400px; 15 }16 17 #a {18 background-color: blue;19 -webkit-grid-column: 1;20 -webkit-grid-row: 1;21 }22 23 #b {24 background-color: lime;25 -webkit-grid-column: 2;26 -webkit-grid-row: 1;27 }28 29 #c {30 background-color: purple;31 -webkit-grid-column: 1;32 -webkit-grid-row: 2;33 }34 35 #d {36 background-color: orange;37 -webkit-grid-column: 2;38 -webkit-grid-row: 2;39 14 } 40 15 … … 57 32 margin: 20%; 58 33 } 59 60 .verticalRL {61 -webkit-writing-mode: vertical-rl;62 }63 34 </style> 64 35 <script src="../../resources/check-layout.js"></script> … … 68 39 69 40 <div class="grid"> 70 <div id="a" class="percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div>71 <div id="b" class="percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div>72 <div id="c" class="percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div>73 <div id="d" class="percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div>41 <div class="firstRowFirstColumn percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div> 42 <div class="firstRowSecondColumn percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div> 43 <div class="secondRowFirstColumn percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div> 44 <div class="secondRowSecondColumn percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div> 74 45 </div> 75 46 76 47 <div class="grid verticalRL"> 77 <div id="a" class="percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div>78 <div id="b" class="percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div>79 <div id="c" class="percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div>80 <div id="d" class="percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div>48 <div class="firstRowFirstColumn percentPadding" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div> 49 <div class="firstRowSecondColumn percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div> 50 <div class="secondRowFirstColumn percentPaddingAndMargin" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div> 51 <div class="secondRowSecondColumn percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div> 81 52 </div> 82 53 83 54 <div class="grid"> 84 <div id="a" class="percentPadding verticalRL" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div>85 <div id="b" class="percentMargin verticalRL" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div>86 <div id="c" class="percentPaddingAndMargin verticalRL" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div>87 <div id="d" class="percentPaddingAndMargin verticalRL" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div>55 <div class="firstRowFirstColumn percentPadding verticalRL" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div> 56 <div class="firstRowSecondColumn percentMargin verticalRL" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div> 57 <div class="secondRowFirstColumn percentPaddingAndMargin verticalRL" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div> 58 <div class="secondRowSecondColumn percentPaddingAndMargin verticalRL" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div> 88 59 </div> 89 60 90 61 <div class="grid"> 91 <div id="a" class="percentPadding verticalRL" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div>92 <div id="b" class="percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div>93 <div id="c" class="percentPaddingAndMargin verticalRL" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div>94 <div id="d" class="percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div>62 <div class="firstRowFirstColumn percentPadding verticalRL" data-expected-padding-top="50" data-expected-padding-right="50" data-expected-padding-bottom="50" data-expected-padding-left="50"></div> 63 <div class="firstRowSecondColumn percentMargin" data-expected-margin-top="150" data-expected-margin-right="150" data-expected-margin-bottom="150" data-expected-margin-left="150"></div> 64 <div class="secondRowFirstColumn percentPaddingAndMargin verticalRL" data-expected-padding-top="10" data-expected-padding-right="10" data-expected-padding-bottom="10" data-expected-padding-left="10" data-expected-margin-top="20" data-expected-margin-right="20" data-expected-margin-bottom="20" data-expected-margin-left="20"></div> 65 <div class="secondRowSecondColumn percentPaddingAndMargin" data-expected-padding-top="30" data-expected-padding-right="30" data-expected-padding-bottom="30" data-expected-padding-left="30" data-expected-margin-top="60" data-expected-margin-right="60" data-expected-margin-bottom="60" data-expected-margin-left="60"></div> 95 66 </div> 96 67 -
trunk/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item.html
r135965 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 background-color: grey;11 10 -webkit-grid-columns: 100px 300px; 12 11 -webkit-grid-rows: 50px 150px; 13 12 height: 200px; 14 13 width: 400px; 15 }16 17 #a {18 background-color: blue;19 -webkit-grid-column: 1;20 -webkit-grid-row: 1;21 }22 23 #b {24 background-color: lime;25 -webkit-grid-column: 2;26 -webkit-grid-row: 1;27 }28 29 #c {30 background-color: purple;31 -webkit-grid-column: 1;32 -webkit-grid-row: 2;33 }34 35 #d {36 background-color: orange;37 -webkit-grid-column: 2;38 -webkit-grid-row: 2;39 14 } 40 15 … … 53 28 height: 100%; 54 29 } 55 56 .verticalRL {57 -webkit-writing-mode: vertical-rl;58 }59 30 </style> 60 31 <script src="../../resources/check-layout.js"></script> … … 64 35 65 36 <div class="grid"> 66 <div id="a" class="percentWidth" data-expected-width="100" data-expected-height="15"></div>67 <div id="b" class="percentHeight" data-expected-width="15" data-expected-height="50"></div>68 <div id="c" class="percentHeightAndWidth" data-expected-width="100" data-expected-height="150"></div>69 <div id="d" class="percentHeightAndWidth" data-expected-width="300" data-expected-height="150"></div>37 <div class="firstRowFirstColumn percentWidth" data-expected-width="100" data-expected-height="15"></div> 38 <div class="firstRowSecondColumn percentHeight" data-expected-width="15" data-expected-height="50"></div> 39 <div class="secondRowFirstColumn percentHeightAndWidth" data-expected-width="100" data-expected-height="150"></div> 40 <div class="secondRowSecondColumn percentHeightAndWidth" data-expected-width="300" data-expected-height="150"></div> 70 41 </div> 71 42 72 43 <div class="grid verticalRL"> 73 <div id="a" class="percentWidth" data-expected-width="50" data-expected-height="15"></div>74 <div id="b" class="percentHeight" data-expected-width="15" data-expected-height="300"></div>75 <div id="c" class="percentHeightAndWidth" data-expected-width="150" data-expected-height="100"></div>76 <div id="d" class="percentHeightAndWidth" data-expected-width="150" data-expected-height="300"></div>44 <div class="firstRowFirstColumn percentWidth" data-expected-width="50" data-expected-height="15"></div> 45 <div class="firstRowSecondColumn percentHeight" data-expected-width="15" data-expected-height="300"></div> 46 <div class="secondRowFirstColumn percentHeightAndWidth" data-expected-width="150" data-expected-height="100"></div> 47 <div class="secondRowSecondColumn percentHeightAndWidth" data-expected-width="150" data-expected-height="300"></div> 77 48 </div> 78 49 79 50 <div class="grid"> 80 <div id="a" class="percentWidth verticalRL" data-expected-width="100" data-expected-height="15"></div>81 <div id="b" class="percentHeight verticalRL" data-expected-width="15" data-expected-height="50"></div>82 <div id="c" class="percentHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div>83 <div id="d" class="percentHeightAndWidth verticalRL" data-expected-width="300" data-expected-height="150"></div>51 <div class="firstRowFirstColumn percentWidth verticalRL" data-expected-width="100" data-expected-height="15"></div> 52 <div class="firstRowSecondColumn percentHeight verticalRL" data-expected-width="15" data-expected-height="50"></div> 53 <div class="secondRowFirstColumn percentHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div> 54 <div class="secondRowSecondColumn percentHeightAndWidth verticalRL" data-expected-width="300" data-expected-height="150"></div> 84 55 </div> 85 56 86 57 <div class="grid"> 87 <div id="a" class="percentWidth verticalRL" data-expected-width="100" data-expected-height="15"></div>88 <div id="b" class="percentHeight" data-expected-width="15" data-expected-height="50"></div>89 <div id="c" class="percentHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div>90 <div id="d" class="percentHeightAndWidth" data-expected-width="300" data-expected-height="150"></div>58 <div class="firstRowFirstColumn percentWidth verticalRL" data-expected-width="100" data-expected-height="15"></div> 59 <div class="firstRowSecondColumn percentHeight" data-expected-width="15" data-expected-height="50"></div> 60 <div class="secondRowFirstColumn percentHeightAndWidth verticalRL" data-expected-width="100" data-expected-height="150"></div> 61 <div class="secondRowSecondColumn percentHeightAndWidth" data-expected-width="300" data-expected-height="150"></div> 91 62 </div> 92 63 </body> -
trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html
r130979 r140480 5 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); 6 6 </script> 7 <link href="resources/grid.css" rel="stylesheet"> 7 8 <style> 8 9 .grid { 9 display: -webkit-grid;10 10 -webkit-grid-columns: 50px 60px; 11 11 -webkit-grid-rows: 20px 30px; 12 background-color: grey;13 12 max-width: 110px; 14 13 } 15 14 16 #a { 17 background-color: blue; 18 -webkit-grid-column: 1; 19 -webkit-grid-row: 1; 15 .firstRowFirstColumn { 20 16 width: 10px; 21 17 height: 15px; 22 18 } 23 #b { 24 background-color: green; 25 -webkit-grid-column: 2; 26 -webkit-grid-row: 1; 19 20 .firstRowSecondColumn { 27 21 width: 10px; 28 22 height: 15px; 29 23 } 30 #c { 31 background-color: red; 32 -webkit-grid-column: 1; 33 -webkit-grid-row: 2; 24 25 .secondRowFirstColumn { 34 26 width: 10px; 35 27 height: 15px; 36 28 } 37 #d { 38 background-color: orange; 39 -webkit-grid-column: 2; 40 -webkit-grid-row: 2; 29 30 .secondRowSecondColumn { 41 31 width: 10px; 42 32 height: 15px; … … 52 42 <div style="position: relative"> 53 43 <div class="grid" data-expected-width="110" data-expected-height="50"> 54 <div id="a" data-offset-x="0" data-offset-y="0"></div>55 <div id="b" data-offset-x="50" data-offset-y="0"></div>56 <div id="c" data-offset-x="0" data-offset-y="20"></div>57 <div id="d" data-offset-x="50" data-offset-y="20"></div>44 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="0"></div> 45 <div class="firstRowSecondColumn" data-offset-x="50" data-offset-y="0"></div> 46 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="20"></div> 47 <div class="secondRowSecondColumn" data-offset-x="50" data-offset-y="20"></div> 58 48 </div> 59 49 </div> … … 61 51 <div style="position: relative"> 62 52 <div class="grid" style="-webkit-writing-mode: horizontal-bt" data-expected-width="110" data-expected-height="50"> 63 <div id="a" data-offset-x="0" data-offset-y="35"></div>64 <div id="b" data-offset-x="50" data-offset-y="35"></div>65 <div id="c" data-offset-x="0" data-offset-y="15"></div>66 <div id="d" data-offset-x="50" data-offset-y="15"></div>53 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="35"></div> 54 <div class="firstRowSecondColumn" data-offset-x="50" data-offset-y="35"></div> 55 <div class="secondRowFirstColumn" data-offset-x="0" data-offset-y="15"></div> 56 <div class="secondRowSecondColumn" data-offset-x="50" data-offset-y="15"></div> 67 57 </div> 68 58 </div> … … 70 60 <div style="position: relative"> 71 61 <div class="grid" style="-webkit-writing-mode: vertical-rl; margin-bottom: 60px;" data-expected-width="50" data-expected-height="110"> 72 <div id="a" data-offset-x="40" data-offset-y="0"></div>73 <div id="b" data-offset-x="40" data-offset-y="50"></div>74 <div id="c" data-offset-x="20" data-offset-y="0"></div>75 <div id="d" data-offset-x="20" data-offset-y="50"></div>62 <div class="firstRowFirstColumn" data-offset-x="40" data-offset-y="0"></div> 63 <div class="firstRowSecondColumn" data-offset-x="40" data-offset-y="50"></div> 64 <div class="secondRowFirstColumn" data-offset-x="20" data-offset-y="0"></div> 65 <div class="secondRowSecondColumn" data-offset-x="20" data-offset-y="50"></div> 76 66 </div> 77 67 </div> … … 79 69 <div style="position: relative"> 80 70 <div class="grid" style="-webkit-writing-mode: vertical-lr; margin-bottom: 60px;" data-expected-width="50" data-expected-height="110"> 81 <div id="a" data-offset-x="0" data-offset-y="0"></div>82 <div id="b" data-offset-x="0" data-offset-y="50"></div>83 <div id="c" data-offset-x="20" data-offset-y="0"></div>84 <div id="d" data-offset-x="20" data-offset-y="50"></div>71 <div class="firstRowFirstColumn" data-offset-x="0" data-offset-y="0"></div> 72 <div class="firstRowSecondColumn" data-offset-x="0" data-offset-y="50"></div> 73 <div class="secondRowFirstColumn" data-offset-x="20" data-offset-y="0"></div> 74 <div class="secondRowSecondColumn" data-offset-x="20" data-offset-y="50"></div> 85 75 </div> 86 76 </div>
Note:
See TracChangeset
for help on using the changeset viewer.