InternetUnicodeHTML Draft for Information Only
ContentCascading Style Model
Cascading Style ModelAlthough Cascading Style Sheet is an attachment to a HTML document, the rendering of the HTML document is based on the styling model of Cascading Style Sheet by cascading the tag rendering data into the CSS style model. The presentation of CSS style model just like stacking a pad of double indexed transparent layers with positioned styling blocks on the parent convas layer according to the structure of HTML document tree and the rendering rule sets of the cascading style sheet. CSS Styling ObjectA CSS styling object is a stacking container which compose of two things. One is the positioned CSS styling block, used to contain the element tag data. One is the CSS stacking layer, used to contain the stacking order and document tree structure. Each element of a HTML document is presented as a CSS styling object, following the CSS rules on a double indexed canvas, a CSS styling layer, according to the structure of the element in the HTML document tree. CSS Styling BlockA CSS styling block is a styling container used to contain both the styling information and data of an element tag. In general, a CSS styling block is designed as a positoned rendered box used to present tag data. The following diagram is a typical CSS box model of a CSS styling block. ![]() According to the styling concept, there are two types of CSS styling blocks. One is block level styling block which is discrete block used for general typography purpose. One is inline level styling block which is continued block used for inline typesetting purpose. Besides, the form of CSS styling block, there are also two important properties of CSS styling block are the styling and positioning properties to control x-y positioning with respected to the canvas. In order to match better with HTML document, a CSS display property together with other float and position properties are used to specify and manupulate the display styling property of the CSS styling block. CSS Styling LayerA CSS styling layer is a stacking container used to contain the z-stacking order of the layer on which the CSS styling object of an element attached. A CSS styling object with CSS position property of value static will stick to the normal layer flow. But for those CSS styling object with position property with value other than static (the default value), the relative stack level may be given by the CSS z-index property. Therefore, the CSS z-index property only affects the CSS styling object with CSS position property of value other than static CSS Stacking ModelThe CSS stacking model is the structure of cascading style model. The CSS stacking model is a tree like structure. The root element of the HTML document creates a root stacking context, and other elements establish local stacking contexts. The CSS z-index property of a css styling object with integer value is given to specify the stack level, z-axis position, relative to other css styling object in the same parent stacking container, that is the same css styling layer. In other words, the CSS z-index property value is only a local relative value based on the same parent stacking context, not a global value. A negative stack level is also allowed. In general, CSS styling objects with lower stack levels are always presented before greater stack levels, and CSS styling objects withthe same stack level will be presented according to the HTML document tree. A CSS styling layer is double indexed layer. The CSS styling object of an element with local stacking context will has two stack levels. The stack level of the element related to the stacking context of the element belongs to can be given by the CSS z-index property if necessary. Besides, another ground stacking level (always '0'?) for the local stackng context will be created automatically. The CSS z-index of value 0 means that the stack level of descendants will only compared locally. In general, the stack level of an element is same as the stack level of its parent unless a different stack level is given by the CSS z-index property. The CSS z-index of value auto means that the element does not establish a new local stacking context unless the element is the root element and the stack level of the element is same as the stack level of its parent. (The stack level of the generated box in the current stacking context is 0.) Example
HTML Document Input:
HTML Web Page Embedded Output: ©sideway ID: 190101902 Last Updated: 2/25/2019 Revision: 1 Ref: ![]() References
![]() Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019