Qt Webkit Browser: On Intel Atom Z-CPU-Family with XP a css3 marquee provokes that the systemtime is running very fast!



  • Hello All and thank you in advance for reading my question.

    I can´t believe my observations with the standart Qt Webkit Browser on an Intel Atom 1,1Ghz and 1,6Ghz from the Z-Family line.

    a marquee propriety " -webkit-marquee-speed: fast;" does that the showing seconds from the javascript clock and the windows xp systembasistime are running very quickly.

    It seems a bug from QT-Webkit-Lib.

    If i open the same webpage with safari on the same machine, the clocks (systemtime and cloch on the webpage) are working very fine.

    I would be a real pleasure if somebody can test this code and late me know, if i dream. The Atom Z CPU Family is very important for do this. On a Netbook with an Atom CPU N270.It´s working very good.

    Please take a look at this example.

    You need this both files to reproduce this effect.


    index.html


    @
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Z-CPU-Family-PC with windows XP and standard QT-Webkit Browser the system time is working very fast!! </title>
    <link rel="stylesheet" type="text/css" href="test.css" media="screen, projection"/>
    <style type="text/css"></style>

    [removed]
    <!--
    function init ( )
    {
    timeDisplay = document.createTextNode ( "" );
    document.getElementById("clock").appendChild ( timeDisplay );
    }
    function updateClock ( )
    {
    var currentTime = new Date ( );

    var currentHours = currentTime.getHours ( );
    var currentMinutes = currentTime.getMinutes ( );
    var currentSeconds = currentTime.getSeconds ( );

    // Pad the minutes and seconds with leading zeros, if required
    currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
    currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

    // Choose either "AM" or "PM" as appropriate
    var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";

    // Convert the hours component to 12-hour format if needed
    currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;

    // Convert an hours component of "0" to "12"
    currentHours = ( currentHours == 0 ) ? 12 : currentHours;

    // Compose the string for display
    var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;

    // Update the time display
    document.getElementById("clock").firstChild.nodeValue = currentTimeString;
    }
    // -->
    [removed]

    </head>
    <body>

    <div id="Header" class="header span-1 last">
    <!-- Fixed header layout containing two rows and clock in the top right of the screen -->
    <div style="font-size:300%; text-align: center; margin: 2px auto;">
    <span id="clock"> </span>
    </div>
    </div>

    </div>
    <!-- The scrolling text marquee -->
    <div id="Marquee" class="marquee span-1 h last row-3">"This is just a marquee test.On an Atom Z-CPU-Family-PC with windows XP and standard QT-Webkit Browser the system time is working very fast !!!! Do you know why? It seems a bug from QT-Webkit-Lib</div>

    </body>
    </html>

    @


    test.css


    @
    /* The header area in the top of the screen */
    div.header {
    background-color: #00f;;
    color: white;
    font-family: "Arial", "Helvetica", "Verdana", "sans-serif";
    width: 1024px;
    height: 768px;
    padding: 0px;
    margin: 0px;
    }

    /* The marquee test */
    div.marquee {
    font-family: "Arial", "Helvetica", "Verdana", "sans-serif";
    color: #FAFCFE;
    background-color: rgb(0,0,255);
    position: relative;
    top: -640px;
    white-space: nowrap; overflow: hidden;
    overflow-x:-webkit-marquee;
    -webkit-marquee-direction: backwards;
    -webkit-marquee-style: scroll;
    -webkit-marquee-speed: fast;
    -webkit-marquee-increment: 2px;
    -webkit-marquee-repetition: infinite;
    opacity: 1;
    }

    div.h {
    font-size: 28pt;

    @


  • Moderators

    Please "file a bug report":http://bugreports.qt.nokia.com/ if you think you found a bug.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.