diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-10-21 23:11:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-10-21 23:11:00 +0000 |
commit | 70d6097ba0d24d928c21b2c943660fade55dfe4f (patch) | |
tree | 0ef0b92866db0956857e48515d7c276589f07fa1 /docs | |
parent | 5bdba222c49afa25a1befead9fb180a9a1a73406 (diff) | |
download | libcss-70d6097ba0d24d928c21b2c943660fade55dfe4f.tar.gz libcss-70d6097ba0d24d928c21b2c943660fade55dfe4f.tar.bz2 |
Document shorthand properties
svn path=/trunk/libcss/; revision=5617
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Bytecode | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docs/Bytecode b/docs/Bytecode index 5c88fec..9decf8f 100644 --- a/docs/Bytecode +++ b/docs/Bytecode @@ -92,6 +92,38 @@ CSS shapes are stored as one 32bit value followed by n CSS dimensions: TODO: how to handle "auto"? +Shorthand properties +-------------------- + +The CSS shorthand properties are handled by decomposing them to their +component parts, and then creating bytecode for these. + +For example, "background: red none no-repeat scroll left top !important;" would +be decomposed to: + + background-color: red !important; + background-image: none !important; + background-repeat: no-repeat !important; + background-attachment: scroll !important; + background-position: left top !important; + +and bytecode generated for each of these properties. + +The full list of CSS 2.1 shorthand properties is: + + background + border-color + border-style + border-{top,right,bottom,left} + border-width + border + cue + font + list-style + margin + outline + padding + pause Opcodes ------- |