[Webkit-unassigned] [Bug 134765] New: GetComputedStyle().top/left return null or auto when top/left use calc()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 9 07:00:30 PDT 2014


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

           Summary: GetComputedStyle().top/left return null or auto when
                    top/left use calc()
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: l.magne at qualiac.com


Overview:
When the css attribute calc() is used on an element to calculate the left and top position, getComputedStyle(element).top and getComputedStyle(element).left return null or auto whereas the render is good.

Steps to reproduce:
Open attached HTML file.

Actual result:
On the "calculated result" section, 
  on Safari : 'top:null' and 'left:null'
  on android browser : 'top:auto' and 'left:auto'


Expected result:
On the "calculated result" section, we must see all the time 'top:40px' and 'left:60px'

Tested Platform:
Safari on IOS7, IOS8, Mac OS X 10.10 Yosemite preview 2 and preview 3
AppleWebKit 534.30 on androïd 4.2.2 (samsun galaxy 3)

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