[Webkit-unassigned] [Bug 68551] New: border-width: initial and border-color: initial cannot be removed via CSSOM

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 21 11:28:19 PDT 2011


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

           Summary: border-width: initial and border-color: initial cannot
                    be removed via CSSOM
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ayg at aryeh.name


Test case:

data:text/html,<!doctype html>
<span style="border-width: initial"></span>
<script>
var span = document.querySelector("span");
span.style.borderWidth = "";
span.style.removeProperty("border-width");
span.style.removeProperty("borderWidth");
alert(span.style.cssText);
</script>

In Chrome 15 dev, this alerts "border-width: initial; ".  Opera 11.50 does something similar.  Firefox 8.0a2 alerts the empty string, as expected.  A similar test in IE9 (it doesn't like the data URL, so I used Live DOM Viewer) also alerts the empty string.  Chrome's behavior is very unexpected.  Chrome behaves the same for border-color.  In fact, if you do

data:text/html,<!doctype html>
<span style="border: 0"></span>
<script>
var span = document.querySelector("span");
span.style.border = "";
alert(span.style.cssText);
</script>

it alerts "border-style: initial; border-color: initial; ", which suggests these two properties have some peculiar bug.

-- 
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