Template:CSSDataTypes

  • Revision slug: Template:CSSDataTypes
  • Revision title: Template:CSSDataTypes
  • Revision id: 62742
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 1 words added, 1 words removed

Revision Content

<% /* Lists all the CSS data types, seperated by a comma */ /* Warning: special case for color (hardcoded) */ /* Non documented ones are not listed */ var data_types = ['angle', 'color', 'frequency', 'identifier', 'integer', 'length', 'number', 'percentage', 'resolution', 'shape', 'string', 'time', 'uri']; var result; foreach(var data_type in data_types) { /*if (result) { result += ', '; } result = result + '<' + data_type + '>'; */ } web.text(result);

Revision Source

<%
/* Lists all the CSS data types, seperated by a comma */
/* Warning: special case for color (hardcoded) */
/* Non documented ones are not listed */

var data_types = ['angle', 'color', 'frequency', 'identifier', 'integer', 'length', 'number', 'percentage', 'resolution', 'shape', 'string', 'time', 'uri'];
var result;

foreach(var data_type in data_types) {
    /*if (result) {
      result += ', ';
    } 
    result = result + '<' + data_type + '>'; */
}


web.text(result); 

</pre>
Revert to this revision