[Webkit-unassigned] [Bug 48803] New: ComputedStyle returns -webkit-auto instead of left or right

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 1 16:31:27 PDT 2010


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

           Summary: ComputedStyle returns -webkit-auto instead of left or
                    right
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: HasReduction, NeedsRadar
          Severity: Minor
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: hyatt at apple.com, mitz at webkit.org,
                    justin.garcia at apple.com, jparent at google.com,
                    marcosalmeida at google.com


window.getComputedStyle returns text-align: -webkit-auto instead of text-align: left / text-align: right when queried against a node when text-align property is not explicitly specified.

For example, suppose we have:
<div id="mydiv" contentEditable>foo</div>

The following script gives -webkit-auto:
window.getComputedStyle(document.getElementById('mydiv'))['textAlign']

Demo:
http://plexode.com/eval3/#ht=%3Cdiv%20id%3D%22mydiv%22%20contentEditable%3Efoo%3C%2Fdiv%3E&ohh=1&ohj=0&jt=window.getComputedStyle(document.getElementById('mydiv'))%5B'textAlign'%5D&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1

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