WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
104821
[CSS Grid Layout] element.style.webkitGridRows / webkitGridColumns doesn't return the right value
https://bugs.webkit.org/show_bug.cgi?id=104821
Summary
[CSS Grid Layout] element.style.webkitGridRows / webkitGridColumns doesn't re...
Julien Chaffraix
Reported
2012-12-12 09:21:36 PST
If you try to get back the grid-rows / grid-columns from JS using Element.style, the values are not right. For example, with minmax: element = document.createElement("div"); document.body.appendChild(element); element.style.font = "10px Ahem"; element.style.webkitGridColumns = "minmax(22em, 8vh)"; element.style.webkitGridRows = "minmax(10vw, 5em)"; alert(element.style.webkitGridColumns); // "22em 8vh" alert(element.style.webkitGridRows); // "10vw 5em" It's unclear to me what we _should_ return though but those are definitely wrong. Also we have no coverage for getting back using Element.style which explains why we missed it. Whoever takes this bug should ensure a good coverage for most scenarios.
Attachments
Add attachment
proposed patch, testcase, etc.
Sergio Villar Senin
Comment 1
2013-11-21 10:41:58 PST
This was already fixed and properly covered by multiple tests. Just to mention some fast/css-grid-layout/grid-columns-rows-get-set.html fast/css-grid-layout/grid-columns-rows-get-set-multiple.html fast/css-grid-layout/named-grid-line-get-set.html fast/css-grid-layout/grid-auto-columns-rows-get-set.html
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug