Changeset 236126 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r236103 r236126 1 2018-09-18 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Static position should use content-box, not padding-box 4 https://bugs.webkit.org/show_bug.cgi?id=189698 5 6 Reviewed by Javier Fernandez. 7 8 * web-platform-tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-001.html: 9 Update tests from WPT. 10 1 11 2018-09-12 Ryosuke Niwa <rniwa@webkit.org> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-001.html
r230445 r236126 42 42 <div class="container relative"> 43 43 <div class="grid"> 44 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x=" 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>44 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="50" data-offset-y="10" 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 firstRowFirstColumn" data-offset-x=" 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>50 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div> 51 51 </div> 52 52 </div> … … 54 54 <div class="container relative"> 55 55 <div class="grid"> 56 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x=" 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>56 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="50" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div> 57 57 </div> 58 58 </div> … … 78 78 <div class="container relative"> 79 79 <div class="grid directionRTL"> 80 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="-1 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>80 <div class="sizedToGridArea absolute autoRowAutoColumn" data-offset-x="-150" data-offset-y="10" 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 firstRowFirstColumn" data-offset-x="-1 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>86 <div class="sizedToGridArea absolute firstRowFirstColumn" data-offset-x="-150" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div> 87 87 </div> 88 88 </div> … … 90 90 <div class="container relative"> 91 91 <div class="grid directionRTL"> 92 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="-1 35" data-offset-y="5" data-expected-width="500" data-expected-height="400"></div>92 <div class="sizedToGridArea absolute secondRowSecondColumn" data-offset-x="-150" data-offset-y="10" data-expected-width="500" data-expected-height="400"></div> 93 93 </div> 94 94 </div> -
trunk/Source/WebCore/ChangeLog
r236104 r236126 1 2018-09-18 Manuel Rego Casasnovas <rego@igalia.com> 2 3 [css-grid] Static position should use content-box, not padding-box 4 https://bugs.webkit.org/show_bug.cgi?id=189698 5 6 Reviewed by Javier Fernandez. 7 8 This is a recent change by the CSSWG: 9 https://github.com/w3c/csswg-drafts/issues/3020 10 11 The spec text (https://drafts.csswg.org/css-grid/#static-position): 12 "The static position of an absolutely-positioned child 13 of a grid container is determined as if it were the sole grid item 14 in a grid area whose edges coincide with the content edges 15 of the grid container." 16 17 Test: imported/w3c/web-platform-tests/css/css-grid/abspos/absolute-positioning-grid-container-parent-001.html 18 19 * rendering/RenderGrid.cpp: 20 (WebCore::RenderGrid::prepareChildForPositionedLayout): 21 Simple change to use border and padding. 22 1 23 2018-09-18 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 24 -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r234687 r236126 904 904 905 905 RenderLayer* childLayer = child.layer(); 906 childLayer->setStaticInlinePosition(borderStart()); 907 childLayer->setStaticBlockPosition(borderBefore()); 906 // Static position of a positioned child should use the content-box (https://drafts.csswg.org/css-grid/#static-position). 907 childLayer->setStaticInlinePosition(borderAndPaddingStart()); 908 childLayer->setStaticBlockPosition(borderAndPaddingBefore()); 908 909 } 909 910
Note:
See TracChangeset
for help on using the changeset viewer.