W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: [css3-images] Reintroduce object-fit: none

From: Simon Pieters <simonp@opera.com>
Date: Thu, 27 Jan 2011 06:19:06 +0100
To: "Tab Atkins Jr." <jackalmage@gmail.com>, "Simon Fraser" <smfr@me.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, "Leif Arne Storset" <lstorset@opera.com>, www-style@w3.org, Philip J├Ągenstedt <philipj@opera.com>
Message-ID: <op.vpybp4nridj3kv@simon-pieterss-macbook.local>
On Thu, 27 Jan 2011 04:59:38 +0100, Simon Fraser <smfr@me.com> wrote:

>> Another option is to simply disallow the overflow effect at all - that
>> is, *always* hide overflow on replaced elements, and ignore the
>> 'overflow' property.  That would solve your concern while still
>> allowing whatever use-cases 'cover' allows.  (I'm not sure why 'cover'
>> is useful, personally.)

I'm fine with making overflow hidden always.

> I agree with David; the content of replaced elements should never  
> overflow
> their box, nor should the UA ever show scrollbars because of object-fit.

FWIW, Opera never shows scrollbars for replaced elements because of  
object-fit: it either overflows like overflow:visible with no way to  
scroll the element, or is overflow:hidden with no way to scroll the  
element. (You could get scrollbars on the whole page or an ancestor  
scrollable element, though.)

> I still think 'cover' is useful, and that it's fine to always treat  
> overflow
> as hidden.

I agree 'cover' is useful. You may want to use 'cover' for avatars like  
e.g. Facebook does.

I also think both 'none' and 'scale-down' are nice-to-have even if an  
alternative to the vertical centering use case is implemented. The demo at  
doesn't use 'none' for vertical centering but for a nice transition  
effect. (At the time of writing there's something wrong with the article  
and its subresources; I've notified the relevant people about that. If  
it's still broken when you read this, use  

Simon Pieters
Opera Software
Received on Thursday, 27 January 2011 05:19:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:55 UTC