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

[css3-flexbox] Should "overflow: [scroll, hidden, auto]" apply to a flex container?

From: Daniel Holbert <dholbert@mozilla.com>
Date: Fri, 25 Jan 2013 15:05:38 -0800
Message-ID: <51030FC2.4000306@mozilla.com>
To: www-style list <www-style@w3.org>
Hi www-style,

Question: Should a flex container honor "overflow:[scroll,hidden,auto]"?

>From my reading of the spec, I think the answer is "no -- overflow
should have no effect on a flex container".  But the implementations in
Chrome dev channel & Opera 12.12 seem to disagree with me, so I figured
I'd get clarification and see if I'm missing something.

Here's a testcase, FWIW:
https://people.mozilla.com/~dholbert/tests/flexbox/compat_tests/flex-container-overflow-scroll.html

My reasoning for why "overflow" should have no effect:
 (a) The property definition specifically targets "block container
elements":
       # This property specifies whether content of a
       # block container element is clipped when it
       # overflows the element's box
    http://www.w3.org/TR/CSS21/visufx.html#overflow

 (b) The flexbox spec explicitly says:
       # Flex containers are not block containers
    http://dev.w3.org/csswg/css3-flexbox/#flex-containers

So, combining (a) and (b): "overflow" specifies something about block
container elements, and flex containers are not block containers --
hence, overflow should *not* apply to flex containers.

Am I missing something?

(Whichever behavior is determined to be correct, this could probably
stand to be clarified in the flexbox spec.)

Thanks,
~Daniel
Received on Friday, 25 January 2013 23:06:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:04 GMT