Bug 119053 - Rewrite parseFrameSetListOfDimension to match HTML5
Summary: Rewrite parseFrameSetListOfDimension to match HTML5
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-07-24 12:18 PDT by Ryosuke Niwa
Modified: 2013-07-25 17:06 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.