[Webkit-unassigned] [Bug 190506] New: Style attribute is created when an invalid property value is set via CSSOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 11 19:43:41 PDT 2018


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

            Bug ID: 190506
           Summary: Style attribute is created when an invalid property
                    value is set via CSSOM
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: emilio at crisal.io

let element = document.createElement("div");
element.style.width = "somethingthatisclearlynotawidth";
console.log(element.hasAttribute("style")); // logs true, should log false.

>From https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty:

> 5. Let component value list be the result of parsing value for property property.
> 6. If component value list is null, then return.
> [...]
> 10. If updated is true, update style attribute for the CSS declaration block. 

Edge's behavior is correct, I'm changing Firefox in https://bugzilla.mozilla.org/show_bug.cgi?id=1498445, where I'm adding a few tests.

-- 
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/20181012/fb5e2eb4/attachment.html>


More information about the webkit-unassigned mailing list