Template:CSSDataTypes

  • Revision slug: Template:CSSDataTypes
  • Revision title: Template:CSSDataTypes
  • Revision id: 62737
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 8 words added, 6 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.concat(', '); } result.concat('<' + 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.concat(', ');
    } 
    result.concat('<' + data_type + '>'); 
}


web.text(result); 

</pre>
Revert to this revision