RESOLVED FIXED 76130
getComputedStyle margin percentage test for CSS calc
https://bugs.webkit.org/show_bug.cgi?id=76130
Summary getComputedStyle margin percentage test for CSS calc
Mike Lawther
Reported 2012-01-11 17:07:27 PST
getComputedStyle margin percentage test for CSS calc
Attachments
Patch (3.89 KB, patch)
2012-01-11 17:10 PST, Mike Lawther
no flags
Patch (3.35 KB, patch)
2012-01-11 22:16 PST, Mike Lawther
no flags
Patch (3.31 KB, patch)
2012-01-16 04:15 PST, Mike Lawther
no flags
Mike Lawther
Comment 1 2012-01-11 17:10:04 PST
Mike Lawther
Comment 2 2012-01-11 22:16:16 PST
Darin Adler
Comment 3 2012-01-13 14:40:03 PST
Comment on attachment 122134 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122134&action=review > LayoutTests/css3/calc/getComputedStyle-margin-percentage.html:36 > + shouldEvaluateTo("window.getComputedStyle(document.getElementById('calc', null)).getPropertyValue('" + prop + "')", "window.getComputedStyle(document.getElementById('control', null)).getPropertyValue('" + prop + "')"); No need for the "window" prefixes here. What is the "null" second argument to getElementById for? I think you mean that to be a second argument for getComputedStyle.
Mike Lawther
Comment 4 2012-01-16 04:14:37 PST
Comment on attachment 122134 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122134&action=review >> LayoutTests/css3/calc/getComputedStyle-margin-percentage.html:36 >> + shouldEvaluateTo("window.getComputedStyle(document.getElementById('calc', null)).getPropertyValue('" + prop + "')", "window.getComputedStyle(document.getElementById('control', null)).getPropertyValue('" + prop + "')"); > > No need for the "window" prefixes here. What is the "null" second argument to getElementById for? I think you mean that to be a second argument for getComputedStyle. Thanks for the review Darin. You're right about the null - it was a mistake. I've fixed it, and removed the 'window' prefix as well.
Mike Lawther
Comment 5 2012-01-16 04:15:43 PST
WebKit Review Bot
Comment 6 2012-01-23 15:32:55 PST
Comment on attachment 122614 [details] Patch Clearing flags on attachment: 122614 Committed r105647: <http://trac.webkit.org/changeset/105647>
WebKit Review Bot
Comment 7 2012-01-23 15:32:59 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.