17 Aug
2015
17 Aug
'15
7:35 p.m.
On 2015-08-02 16:52, August Karlstrom wrote:
Apparently some (or most?) browsers, Firefox for instance, do uniform scaling when only one of the width or height attribute is set on an img element. Dillo does non-uniform scaling and changes only the specified dimension. Here is what the reference has to say about it:
"When the object is an image, it is scaled. User agents should do their best to scale an object or image to match the width and height specified by the author."
http://www.w3.org/TR/html401/struct/objects.html#edef-IMG
It seems to be a question of interpretation.
I have posted the question on Stack Overflow: http://stackoverflow.com/questions/31773161/specifying-only-width-or-height-... -- August