W3C home > Mailing lists > Public > www-style@w3.org > February 2010

image-fit: none in szilles's meeting minutes

From: Leif Arne Storset <lstorset@opera.com>
Date: Thu, 25 Feb 2010 17:09:03 +0100
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <op.u8oxtdkbtmo5g6@nynorsk>
Simon Pieters <simonp@opera.com> skreiv Thu, 18 Feb 2010 09:00:56 +0100

> On Thu, 18 Feb 2010 00:01:06 +0100, fantasai  
> <fantasai.lists@inkedblade.net> wrote:
>> On 01/21/2010 06:56 AM, Simon Pieters wrote:
>>> Hi,
>>> Regarding image-fit and image-position:
>>> http://dev.w3.org/csswg/css3-page/#propdef-image-fit
>>> http://dev.w3.org/csswg/css3-page/#propdef-image-posn

I hear through the grapevine that someone (perhaps the Paged Media WG?)  
discussed this in an IRC meeting on Wednesday [1], where the proposed  
'none' value was questioned. See below for some important information  
regarding this.

I will comment on the 'auto' value separately but perhaps wait until  
szilles has prepared a final version of the meeting minutes. szilles: Will  
the final version be published to the same URL? When do you expect it will  
be finished?

>>> * Missing "none"
>>> The none value only seems to be documented in the example and is not
>>> actually part of the property according to the current draft.
>>> Suggestion: In the image-fit definition [2], add "none" to the list of
>>> values. In the description, add the following:
>>> none
>>> Render the content at its intrinsic dimensions, overflowing if  
>>> necessary.
>> Hmm, the intention was to remove 'none', because we couldn't come up
>> with a use case. Are you saying we should add it back?
> We've implemented it, and it seems useful for easy centering or  
> positioning images without scaling them. Centering images vertically in  
> a box can be a PITA today, especially if you don't know the dimensions.  
> With image-fit:none, it is super-easy.

The meeting minutes say that interpretation of the 'none' value depends on  
the model for negotiation between box and content [2], and that Opera  
Software asserted this value was necessary for SVG. I believe you may have  
confused 'none' with 'auto' in this case, as the negotiation model and SVG  
are important for 'auto' but not really for 'none'. Simon Pieters's use  
case for 'none' was centering unscaled content in a large box, something  
that is difficult now but trivial with 'image-fit: none'.

Due to this confusion I suggest you reconsider the value 'none' at your  
next meeting.

[1] http://www.w3.org/2010/02/24-CSS-minutes.html
[2] http://lists.w3.org/Archives/Public/www-style/2010Feb/0164.html

Leif Arne Storset
Layout developer, Opera Software
Received on Thursday, 25 February 2010 16:09:42 UTC

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