forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[css-grid] Preserve auto repeat() in getComputedStyle() for non-grids
Usually, the resolved value of grid-template-rows/columns is the used value, expanding the repeat() notation. But for elements with a non-grid display, the resolved value is just the computed value, with repeat(), since the used value doesn't exist. Before this patch, the repeat() was dropped, and line names after it appeared at the wrong position or were also dropped. There was also an assert failure in debug. This patch fixes the serialization for auto repeat(). Integer repeat() is still expanded at computed-value time, so it's not preserved in getComputedStyle(). Spec: https://drafts.csswg.org/css-grid/#resolved-track-list BUG=988516 TEST=external/wpt/css/css-grid/parsing/grid-template-columns-computed-nogrid.html TEST=external/wpt/css/css-grid/parsing/grid-template-columns-computed.html TEST=external/wpt/css/css-grid/parsing/grid-template-rows-computed-nogrid.html TEST=external/wpt/css/css-grid/parsing/grid-template-rows-computed.html There are some test failures because integer repeat() is still expanded at computed-value time (http://crbug.com/989004). Change-Id: Ia262102472f2270cc9fed97a76f2766a1c17e931 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1724517 Commit-Queue: Oriol Brufau <obrufau@igalia.com> Reviewed-by: Javier Fernandez <jfernandez@igalia.com> Cr-Commit-Position: refs/heads/master@{#699793}
- Loading branch information
1 parent
b58ecb3
commit f125228
Showing
9 changed files
with
497 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.