[Webkit-unassigned] [Bug 197067] New: [css-grid] grid shortname props contain invalid property values for valid longhand property values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 18 12:25:03 PDT 2019


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

            Bug ID: 197067
           Summary: [css-grid] grid shortname props contain invalid
                    property values for valid longhand property values
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: clinton.ayres at gmail.com

The following list of shorthand properties all exhibit the same error in that values stored in CSSStyleDeclaration object are invalid.

 - grid
 - grid-area
 - grid-column
 - grid-row
 - grid-template

Simple example for grid-area property:

```
const style = document.createElement('style');
document.head.appendChild(style);

style.sheet.insertRule('.surprise { grid-area: 1 / 2 / 3 / 4; }');
console.log(style.sheet.cssRules[0].style.gridArea);
```

expected:

```
> "1 / 2 / 3 / 4"
```

actual:

```
> "1 2 3 4"
```

The same type of issue occurs for each of the css grid shorthand properties. Seems possibly related to the char '/' but could be a bad signal too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190418/8baef24f/attachment.html>


More information about the webkit-unassigned mailing list