Changes between Version 7 and Version 8 of QtWebKitGraphics
- Timestamp:
- Apr 19, 2010, 3:54:51 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QtWebKitGraphics
v7 v8 18 18 So, CSS box model to decorate dynamic content - transforms and regular images for dynamic UI. 19 19 20 Note 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. 20 21 21 22 === Use static images === 22 23 Sometimes 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. 24 On very low-end platforms, it's even advised to use static images for some of the text if possible. 23 25 24 26 === Plan your scene-graph === … … 27 29 28 30 This 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 30 31 31 32