Bug 119717 - [CSS Grid Layout] 2 span positions are not resolved correctly
Summary: [CSS Grid Layout] 2 span positions are not resolved correctly
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sergio Villar Senin
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-08-12 20:19 PDT by Ryosuke Niwa
Modified: 2013-10-14 01:59 PDT (History)
14 users (show)

See Also:


Attachments
Patch (11.43 KB, patch)
2013-10-14 01:40 PDT, Sergio Villar Senin
kling: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-08-12 20:19:12 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/2245e6b85adf3c96ef9b34dc6c92d736aaba2aac

The resolution code in resolveGridPositionsFromStyle had a bug where
we would check for 2 'auto' positions to determine if we needed to
run the auto-placement algorithm. However the specification considers
other positions as being treat as 'auto' depending on the context.
Due to this glitch, we would try to explicitly resolve a 'span'
position yielding to ASSERTs and the wrong result.

While touching some grid parsing tests, added a real grid container
so they now also test the resolution code path. Also removed some
unneeded internal overrides.

TEST=grid-item-bad-resolution-double-span.html
Comment 1 Sergio Villar Senin 2013-10-14 01:40:33 PDT
Created attachment 214132 [details]
Patch
Comment 2 Sergio Villar Senin 2013-10-14 01:59:25 PDT
Committed r157389: <http://trac.webkit.org/changeset/157389>