CSS vs. img size attributes

Is there a clear specification that rules on which takes precedence, CSS
or explicit width and height attributes of an <img> element in a HTML
document?

The same goes for any replaced element: what if the replacing content
has a set size in the DOM? Or for that matter, if it has an intrinsic size.

Received on Tuesday, 25 November 2014 08:35:07 UTC