RESOLVED FIXED Bug 81478
CSS3 calc: background positioning works with mixed percent/absolute expressions
https://bugs.webkit.org/show_bug.cgi?id=81478
Summary CSS3 calc: background positioning works with mixed percent/absolute expressions
Mike Lawther
Reported 2012-03-18 18:06:53 PDT
CSS3 calc: background positioning works with mixed percent/absolute expressions
Attachments
Patch (20.79 KB, patch)
2012-03-18 18:07 PDT, Mike Lawther
no flags
Mike Lawther
Comment 1 2012-03-18 18:07:36 PDT
Mike Lawther
Comment 2 2012-03-18 18:09:12 PDT
Here is the test that is now passing: http://trac.webkit.org/browser/trunk/LayoutTests/css3/calc/background-position-parsing.html. Just linking here since it doesn't show up in the review as the test itself hasn't changed.
Luke Macpherson
Comment 3 2012-03-18 22:48:17 PDT
Life will be easier if could find a way to add this to primitiveValue->convertToLength and then just use it everywhere - that way there won't be special cases all over the place.
Ojan Vafai
Comment 4 2012-03-19 10:26:03 PDT
Comment on attachment 132515 [details] Patch I agree with Luke, we should see if there are good helper functions for this. I guess it's a little tricky because sometimes you need to handle Auto lengths and sometimes you don't?
WebKit Review Bot
Comment 5 2012-03-19 10:34:36 PDT
Comment on attachment 132515 [details] Patch Clearing flags on attachment: 132515 Committed r111200: <http://trac.webkit.org/changeset/111200>
WebKit Review Bot
Comment 6 2012-03-19 10:34:40 PDT
All reviewed patches have been landed. Closing bug.
Mike Lawther
Comment 7 2012-03-19 14:57:20 PDT
Hmm, if I could roll it in there, I think that means I could remove the external distinction between isPercent and isCalculatedPercentageWithLength. All of the isLength() and isPercentage() cases would also end up getting factored out as well.
Note You need to log in before you can comment on or make changes to this bug.