Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Qt Webkit Browser: On Intel Atom Z-CPU-Family with XP a css3 marquee provokes that the systemtime is running very fast!
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 2 Posters 2.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    armandopoulos
    wrote on 8 Apr 2011, 14:25 last edited by
    #1

    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;

    @

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 8 Apr 2011, 15:06 last edited by
      #2

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

      1 Reply Last reply
      0

      1/2

      8 Apr 2011, 14:25

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved