- From: Anne van Kesteren via cvs-syncmail <cvsmail@w3.org>
- Date: Sat, 02 Jul 2011 10:47:07 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/cssom In directory hutz:/tmp/cvs-serv18270 Modified Files: Overview.html Overview.src.html Added Files: bash.sh cssom-generate.py Removed Files: properties.py Log Message: Anolis Index: Overview.html =================================================================== RCS file: /sources/public/csswg/cssom/Overview.html,v retrieving revision 1.143 retrieving revision 1.144 diff -u -d -r1.143 -r1.144 --- Overview.html 31 Aug 2010 12:55:09 -0000 1.143 +++ Overview.html 2 Jul 2011 10:47:05 -0000 1.144 @@ -1,7 +1,4 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> - -<html lang=en-US> - <head> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"><html lang="en-US"><head> <title>CSSOM</title> <style type="text/css"> @@ -18,1416 +15,1136 @@ dl.switch { padding-left:2em } dl.switch > dt { text-indent:-1.5em } [...6231 lines suppressed...] - Robert O'Callahan, Sjoerd Visscher, Simon Pieters, Sylvain Galineau, and - Tarquin Wilton-Jones for contributing to this specification. + for contributing to this specification.</p> <p>And additional bonus thanks to Ian Hickson for writing up the the - initial version of the alternative style sheets API and canonicalization - (now serialization) rules for CSS values.</p> + initial version of the alternative style sheets API and canonicalization + (now serialization) rules for CSS values.</p> + <!-- XXX NOTES <style type=text/css;charset=utf-8> does create a StyleSheet in Firefox @@ -4169,3 +3275,6 @@ Markup style: http://krijnhoetmer.nl/irc-logs/whatwg/20100204#l-529 --> + + + Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/cssom/Overview.src.html,v retrieving revision 1.146 retrieving revision 1.147 diff -u -d -r1.146 -r1.147 --- Overview.src.html 31 Aug 2010 12:55:09 -0000 1.146 +++ Overview.src.html 2 Jul 2011 10:47:05 -0000 1.147 @@ -17,7 +17,6 @@ dl.switch { padding-left:2em } dl.switch > dt { text-indent:-1.5em } dl.switch > dt:before { content:'\21AA'; padding:0 0.5em 0 0; display:inline-block; width:1em; text-align:right; line-height:0.5em } -m em.ct { text-transform:lowercase; font-variant:small-caps; font-style:normal } code { color:orangered } code :link, code :visited { color:inherit } </style> @@ -33,10 +32,10 @@ <dl> <dt>This Version:</dt> [...1375 lines suppressed...] <var title="">elt</var>.</p></li> @@ -2666,12 +3133,12 @@ - <h2 class="no-num" id="references">References</h2> - - <p class="XXX">This section will be done when going to Last Call. Before - that state please ask the author whenever a reference is unclear.</p> - +<h2 class=no-num>References</h2> +<h3 class=no-num>Normative references</h3> +<div id=anolis-references-normative></div> +<h3 class=no-num>Informative references</h3> +<div id=anolis-references-informative></div> <h2 class="no-num" id="acknowledgments">Acknowledgments</h2> --- NEW FILE: cssom-generate.py --- # GENERATE CSSOM cssidlattributes = """azimuth background backgroundAttachment backgroundColor backgroundImage backgroundPosition backgroundRepeat border borderCollapse borderColor borderSpacing borderStyle borderTop borderRight borderBottom borderLeft borderTopColor borderRightColor borderBottomColor borderLeftColor borderTopStyle borderRightStyle borderBottomStyle borderLeftStyle borderTopWidth borderRightWidth borderBottomWidth borderLeftWidth borderWidth bottom captionSide clear clip color content counterIncrement counterReset cue cueAfter cueBefore cursor direction display elevation emptyCells cssFloat font fontFamily fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontWeight height left letterSpacing lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginTop marginRight marginBottom marginLeft markerOffset marks maxHeight maxWidth minHeight minWidth orphans outline outlineColor outlineStyle outlineWidth overflow padding paddingTop paddingRight paddingBottom paddingLeft page pageBreakAfter pageBreakBefore pageBreakInside pause pauseAfter pauseBefore pitch pitchRange playDuring position quotes richness right size speak speakHeader speakNumeral speakPunctuation speechRate stress tableLayout textAlign textDecoration textIndent textShadow textTransform top unicodeBidi verticalAlign visibility voiceFamily volume whiteSpace widows width wordSpacing zIndex""" def property_from_attribute(attribute): output = "" if attribute == "cssFloat": return "float" for char in attribute: if char.isupper(): output += "-" output += char.lower() else: output += char return output def generate_propertyidl(): value = "" for attribute in cssidlattributes.split("\n"): value += " attribute DOMString? <span title=\"dom-CSSStyleDeclaration-" + attribute + "\">" + attribute + "</span>;\n" return value def generate_propertytable(): value = "" for attribute in cssidlattributes.split("\n"): identifier = "dom-CSSStyleDeclaration-" + attribute value += " <tr>\n <td><dfn title=\"" + identifier + "\"><code>" + attribute + "</code></dfn></td>\n <td>\"<code>" + property_from_attribute(attribute) + "</code>\"</td>\n" return value def generate_spec(): source = open("./cssom-source", "r").read() source = source.replace("<!--CSSOM-DECLARATIONIDL-->\n", generate_propertyidl()) source = source.replace("<!--CSSOM-DECLARATIONTABLE-->\n", generate_propertytable()) file = open("./Overview.src.html", "w") file.write(source) file.close() if __name__ == '__main__': generate_spec() --- NEW FILE: bash.sh --- echo "run preprocessor" python cssom-generate.py echo "run anolis" anolis --output-encoding=ascii --omit-optional-tags --quote-attr-values --w3c-compat --enable=xspecxref --enable=refs --w3c-shortname="cssom" --filter=".publish" Overview.src.html Overview.html --- properties.py DELETED ---
Received on Saturday, 2 July 2011 10:47:14 UTC