Changeset 216916 in webkit
- Timestamp:
- May 16, 2017 12:50:32 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r216901 r216916 1 2017-05-16 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Fix static position of positioned grid items 4 https://bugs.webkit.org/show_bug.cgi?id=172108 5 6 Reviewed by Sergio Villar Senin. 7 8 The test is updated as the expected results were wrong. 9 Note that after this patch we match Chrome and Firefox behavior on this test. 10 11 * fast/css-grid-layout/absolute-positioning-grid-container-parent.html: 12 1 13 2017-05-15 Said Abou-Hallawa <sabouhallawa@apple.com> 2 14 -
trunk/LayoutTests/fast/css-grid-layout/absolute-positioning-grid-container-parent.html
r200572 r216916 36 36 <div class="container relative"> 37 37 <div class="grid"> 38 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x=" 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>38 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 39 39 </div> 40 40 </div> … … 42 42 <div class="container relative"> 43 43 <div class="grid"> 44 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x=" 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>44 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 45 45 </div> 46 46 </div> … … 48 48 <div class="container relative"> 49 49 <div class="grid"> 50 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x=" 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>50 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 51 51 </div> 52 52 </div> … … 72 72 <div class="container relative"> 73 73 <div class="grid directionRTL"> 74 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="-1 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>74 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="-135" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 75 75 </div> 76 76 </div> … … 78 78 <div class="container relative"> 79 79 <div class="grid directionRTL"> 80 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="-1 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>80 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="-135" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 81 81 </div> 82 82 </div> … … 84 84 <div class="container relative"> 85 85 <div class="grid directionRTL"> 86 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="-1 50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div>86 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="-135" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div> 87 87 </div> 88 88 </div> -
trunk/Source/WebCore/ChangeLog
r216912 r216916 1 2017-05-16 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Fix static position of positioned grid items 4 https://bugs.webkit.org/show_bug.cgi?id=172108 5 6 Reviewed by Sergio Villar Senin. 7 8 This patch makes us follow the text on the spec 9 (https://drafts.csswg.org/css-grid/#static-position): 10 "The static position of an absolutely-positioned child 11 of a grid container is determined as if it were the sole grid item 12 in a grid area whose edges coincide with the padding edges 13 of the grid container." 14 15 Test: fast/css-grid-layout/absolute-positioning-grid-container-parent.html 16 17 * rendering/RenderGrid.cpp: 18 (WebCore::RenderGrid::prepareChildForPositionedLayout): Modified to avoid 19 including padding to match the spec behavior. 20 1 21 2017-05-16 Per Arne Vollan <pvollan@apple.com> 2 22 -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r215800 r216916 935 935 936 936 RenderLayer* childLayer = child.layer(); 937 childLayer->setStaticInlinePosition(border AndPaddingStart());938 childLayer->setStaticBlockPosition(border AndPaddingBefore());937 childLayer->setStaticInlinePosition(borderStart()); 938 childLayer->setStaticBlockPosition(borderBefore()); 939 939 } 940 940
Note: See TracChangeset
for help on using the changeset viewer.