Bug 119053

Summary: Rewrite parseFrameSetListOfDimension to match HTML5
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: hyatt, jchaffraix, mjs, simon.fraser, thorton
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2013-07-24 12:18:57 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/ac7e5c0cbc39fa3899dc556af24157e71a7d789b

HTML5 defines the "rules for parsing a list of dimensions" in section
2.4.4.6. Those rules are very close to our legacy code with a couple
of differences:
- For inputs with only leading spaces and a unit, HTML5 return 0 with
the specified unit. The old code would return (1, Relative).
- HTML5 allow doubles for every units and not just percentage.

The 2 new behaviors are more consistent with the author's intent (and
are corner cases) so the compatibility risk of this change is small.