Template:CSSDataTypes

  • Revision slug: Template:CSSDataTypes
  • Revision title: Template:CSSDataTypes
  • Revision id: 62732
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 2 words added, 3 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; web.text("start"); for (var i = 0; i<data_types.length; '="" (result)="" *="" +=", " ;="" data_types[i]="" foreach');="" i++)="" if="" result="" web.text('in="" {="" }="">'; */} web.text(result); </data_types.length;>

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;

web.text("start");

for (var i = 0; i<data_types.length; i++) {
    web.text('in ForEach');
/*    if (result) {
      result += ', ';
    } 
    result += '<' + data_types[i] + '>'; 
*/}


web.text(result); 

</pre>
Revert to this revision