[scroll, hidden, auto]" apply to a flex container? from Daniel Holbert on 2013-01-25 (www-style@w3.org from January 2013) (original) (raw)

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 UTC