Changes between Version 7 and Version 8 of QtWebKitGraphics


Ignore:
Timestamp:
Apr 19, 2010, 3:54:51 PM (15 years ago)
Author:
noam.rosenthal@nokia.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QtWebKitGraphics

    v7 v8  
    1818So, CSS box model to decorate dynamic content - transforms and regular images for dynamic UI.
    1919
     20Note that background are still the right choice when the background image is static and the foreground is dynamic - it's just not advisable to use backgrounds for images that change their source a lot.
    2021
    2122=== Use static images ===
    2223Sometimes it's tempting to use webkit's drawing features, like -webkit-gradient, when it's not actually necessary - maintaining images and dealing with Photoshop and drawing tools can be a hassle. However, using CSS for those tasks moves that hassle from the designer's computer to the target's CPU. Gradients, shadows, and other decorations in CSS should be used only when necessary (e.g. when the shape is dynamic based on the content) - otherwise, static images are always faster.
     24On very low-end platforms, it's even advised to use static images for some of the text if possible.
    2325
    2426=== Plan your scene-graph ===
     
    2729
    2830This is one of the trickier parts of web development - there are numerous ways to achieve almost any desired effect. In general, being smart about the scene-graph and planning the elements on it is usually better than relying on CSS to do the job.
    29 
    3031
    3132