W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 12017] New: Keeping IMG aspect ratio

From: <bugzilla@jessica.w3.org>
Date: Wed, 09 Feb 2011 10:31:16 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-12017-2486@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12017

           Summary: Keeping IMG aspect ratio
           Product: HTML.next
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
        AssignedTo: dave.null@w3.org
        ReportedBy: stephane.roucheray@free.fr
         QAContact: public-html-bugzilla@w3.org
                CC: plh@w3.org, mike@w3.org


What if an image need to fill a certain amount of space, i.e. a div container
is of a particular size and the inner image should fill the maximum space (or a
percentage) of the container without altering its aspect ratio.

I suggest adding a "keepAspectRatio" or "preserveAspectRatio" attribute on img
tag.

When this attribute has "true" as a value, whatever width or height are set
(either by setting width or height attributes or by setting them via CSS) the
image will fill the maximum space it can inside this width and height
preserving its aspect ratio.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 9 February 2011 10:31:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 February 2011 10:31:23 GMT