From 70d6097ba0d24d928c21b2c943660fade55dfe4f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 21 Oct 2008 23:11:00 +0000 Subject: Document shorthand properties svn path=/trunk/libcss/; revision=5617 --- docs/Bytecode | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'docs/Bytecode') 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 ------- -- cgit v1.2.3