title: How to select a paragraph that contains a floating image?
body: <p>I'd like to be able to write a CSS rule that applies to a paragraph, but only if that paragraph contains an <code>&lt;img&gt;</code> tag with an <code>align</code> attribute. Note I do not want to select the image, but the paragraph that contains it. (I want to apply the style <code>clear: both</code> to the paragraph to make sure there is room for the floating image in the margin.) Is this possible using only CSS rules supported by current browsers?</p>
  
  <p>Currently I'm actually munging the HTML generated by a help tool using a post-processing script I wrote, but doing it with CSS would be far more elegant and less trouble-prone.</p>