[Webkit-unassigned] [Bug 104821] New: [CSS Grid Layout] element.style.webkitGridRows / webkitGridColumns doesn't return the right value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 12 09:19:14 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=104821

           Summary: [CSS Grid Layout] element.style.webkitGridRows /
                    webkitGridColumns doesn't return the right value
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jchaffraix at webkit.org
                CC: tony at chromium.org, xan.lopez at gmail.com,
                    ojan at chromium.org, alexis at webkit.org,
                    tabatkins at google.com
            Blocks: 60731


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list