[CSS Grid Layout] Fix issues adding new items to grid
First if the grid auto flow property is different to none, the grid is marked as dirty when a new child is added. Because of if it contains auto-placed items, they might need to be re-positioned. Then if the new item has definite positions and auto flow is none, the grid will grow as required and place the new item without being marked as dirty. The test was not working properly, as it was adding the PASS messages as auto-placed grid items which was marking the grid as dirty and force a re-calculation of the position. Moving the results of the test to a different div make the test fails without this patch. Test expectation was updated accordingly. BUG=248151 TEST=fast/css-grid-layout/grid-item-addition-auto-placement-update.html Review URL: https://codereview.chromium.org/198703004 git-svn-id: svn://svn.chromium.org/blink/trunk@169784 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment