> #myDiv { > width: 100px; > padding: 20px; > > if( calculated-width != 100px ) > width: 80px; > } > a browser with no support for the if statement skips it and just does > sets the second width. No, a browser with no support for the if statement skips it and everything up to the next ';' or '}' char (balancing parens and quotes, etc), if I read the CSS parsing rules correctly. So it would completely ignore the whole if body. On the other hand, what does "calculated-width" mean? What if the user stylesheet has "padding: 0 !important"? Boris -- "This isn't right. This isn't even wrong." -- Wolfgang Pauli on a paper submitted by a physicist colleagueReceived on Sunday, 28 March 2004 21:21:36 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:27 GMT