[Webkit-unassigned] [Bug 62951] New: used value support (IE currentStyle)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 19 05:14:52 PDT 2011


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

           Summary: used value support (IE currentStyle)
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: chrome at webmop.de


please add support for IE currentStyle (i.e. used CSS value). it's vital to oop-app-ui-programming.

current solution is:

this.getDefinedHeightParent=function(n)
{
 var cS,cS2
 while(n!=app.rootElement)
 {
  cS=app.getCS(n)
  if(cS.position=="absolute"||cS.position=="fixed")return n
  if((cS2=n.currentStyle) && n.currentStyle.height!="auto")return n
  else if(!cS2 && n.style.height && n.style.height!="auto") return n //not dry!
  if(!n.parentNode) return n
  n=n.parentNode
 }
 return n
}

this forces user/programmer to add "height:auto;" to every element of an "app-object-source", like:

this.containerHTML=function(param,$class$)
{
return    {
 tabheadsleft:[
 {tagName:"DIV",$id$:"tabheadcontainerleft",style:"height:auto;" //<-------- redundant
 ,children:[$this$.getTabBorderStart.call(this,"left"),{tagName:"DIV",$id$:"tabheadleft",children:["<SPAN style='white-space:nowrap;'>Tab "+this.uid+" "+this.classType+" "+this.chainStr+"</SPAN>"]}    
 ,$this$.getTabBorderEnd.call(this,"left")]}]
...

and/or app notation which sets node.style.height to auto like:

sizes{tabheadcontainerleft:{height:"auto"}}

thank you
stefan

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