I understand this might be old.
Would it be at all possible to implement sizing an image to the percentage of its containing element (table, div)? Or would such a functionality be impossible "by design"?
Alternatively, please point me to the code fragments which produce the Image: tags' markup for rendering in browsers.
Thanks.
On Thu, Mar 5, 2009 at 7:07 AM, Yury Tarasievich yury.tarasievich@gmail.com wrote:
Would it be at all possible to implement sizing an image to the percentage of its containing element (table, div)? Or would such a functionality be impossible "by design"?
It would be possible, but it would look terrible for most users. Browsers just don't do resizing that looks good, and the server doesn't know about percentage widths. Therefore only exact pixel sizes can feasibly be used in a lot of cases. For some cases, of course, browser resizing might look good enough.
Aryeh Gregor <Simetrical+wikilist <at> gmail.com> writes:
On Thu, Mar 5, 2009 at 7:07 AM, Yury Tarasievich
...
It would be possible, but it would look terrible for most users. Browsers just don't do resizing that looks good, and the server doesn't know about percentage widths. Therefore only exact pixel sizes can feasibly be used in a lot of cases. For some cases, of course, browser resizing might look good enough.
That was my reason for asking. I understand the concern for quality, but I expect fair quality for some cases and for some percentages, however.
So, about the modules/functions involved?
--
Yury Tarasievich <yury.tarasievich <at> gmail.com> writes:
So, can anybody point me to the code producing the browsers' markup for the Image: tags?
Thanks.
Yury Tarasievich yury.tarasievich@gmail.com wrote:
So, can anybody point me to the code producing the browsers' markup for the Image: tags?
Hello Yury,
The image markup is produced in the Linker classhttp://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Linker.php?view=markup.
wikitech-l@lists.wikimedia.org