[Webkit-unassigned] [Bug 185953] New: cssText serialization doesn't contain properties with "initial" values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 11:56:09 PDT 2018


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

            Bug ID: 185953
           Summary: cssText serialization doesn't contain properties with
                    "initial" values
           Product: WebKit
           Version: Safari 11
          Hardware: Macintosh
                OS: macOS 10.13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bendean837 at gmail.com

This happens for both CSSStyleDeclaration.cssText and CSSRule.cssText.

```
var styleEl = document.createElement('style');
styleEl.textContent = 'body { width: initial; }'
document.head.appendChild(styleEl);

console.log(styleEl.sheet.cssRules[0].cssText);
```

Expected:
> "body { width: initial; }"

Got:
> "body { }"

You can try it here at https://jsfiddle.net/vu434w60/

Thanks!

-- 
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/20180524/7fa8da03/attachment-0001.html>


More information about the webkit-unassigned mailing list