[Webkit-unassigned] [Bug 9248] Quirksmode: scrollTop in select list is always 0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 20 07:32:42 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=9248





------- Comment #8 from VE3LL at RAC.CA  2008-05-20 07:32 PDT -------
here is the shortened test
<?xml version="1.1" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head><title>StickyBug:VE3LL at RAC.CA</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<script type="text/javascript">//<![CDATA[
var ltop2;scrollSpeed2=20; //Screen refresh rate in msec.
function checkScrolled2(){ //backTo Top link stays in lower right
  window.status=document.documentElement.scrollTop
  document.getElementById('stickyEl').style.top =
      document.documentElement.scrollTop+ltop2+'px';
  setTimeout(checkScrolled2,scrollSpeed2) ;}
function stickyInit(){
  copy='<a href="jstutor5.htm">GoTo Top<\/a>'; //dynamic text only
  document.getElementById('stickyEl').innerHTML=copy; //dynamic text only
  ltop2=parseInt(document.getElementById('stickyEl').style.top,10);
  checkScrolled2();}
//]]>
</script></head>
<body onload="stickyInit();"><h1>StickyBug:VE3LL at RAC.CA</h1>
<div id="stickyEl"
style="position:absolute;top:380px;left:655px;z-index:3">***</div>
<pre>
// SOME STUFF TO ALLOW SCREEN TO SCROLL -- WATCH THE GoToTop MARKER

// and then the status line for what scrollTop is returning

// repeat with MSIE, FireFox and Opera

/* checked with jsLint 2008 04 22 */

// scripts for tutorial #5 - DOM and DHTML

/* BackToTop link that sticks in one spot */

var ltop2;scrollSpeed2=20; //Screen refresh rate in msec.?

function checkScrolled2(){ //backTo Top link stays in lower right

  window.status=document.documentElement.scrollTop

  document.getElementById('stickyEl').style.top=

           document.documentElement.scrollTop+ltop2+'px';

  setTimeout(checkScrolled2,scrollSpeed2);}

function stickyInit(){    //write link dynamically

  document.getElementById('stickyEl').innerHTML=copy;

  ltop2=parseInt(document.getElementById('stickyEl').style.top,10);

  checkScrolled2();}

</pre></body></html>


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list