mozilla

Revision 62719 of Template:CSSDataTypes

  • Revision slug: Template:CSSDataTypes
  • Revision title: Template:CSSDataTypes
  • Revision id: 62719
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 3 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="roh"; function printDataTypes(element, index, array) {  if (result) {   result += ", "; } result += "<" + element + ">"; }  data_types.forEach(printDataTypes); 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="roh";

function printDataTypes(element, index, array) { 
    if (result) {
      result += ", ";
    } 
    result += "<" + element + ">"; 
} 

data_types.forEach(printDataTypes);

web.text(result); 

</pre>
Revert to this revision