Bug 120003

Summary: Spec change: margins/paddings inside a flex container are relative to their respective dimension, not always the inline dimension (as in block layout)
Product: WebKit Reporter: Michał Gołębiowski-Owczarek <m.goleb+bugzilla>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cbiesinger, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jsfiddle.net/m_gol/uVVFn/7/

Michał Gołębiowski-Owczarek
Reported 2013-08-19 01:56:47 PDT
According to the spec change from March 2013: http://lists.w3.org/Archives/Public/www-style/2013Mar/0688.html margins/paddings inside a flex container should be relative to their respective dimensions, e.g. padding-top: 50% sets padding to 50% of height, not width as it is in block layout. So far only Firefox has implemented the change which makes it impossible to use percentages for paddings in flex containers on the web. :( Related Chromium ticket: https://code.google.com/p/chromium/issues/detail?id=275327
Attachments
Michał Gołębiowski-Owczarek
Comment 1 2013-08-19 02:03:11 PDT
Michał Gołębiowski-Owczarek
Comment 2 2013-08-19 02:10:25 PDT
Christian Biesinger
Comment 3 2013-08-22 16:03:16 PDT
*** This bug has been marked as a duplicate of bug 113519 ***
Note You need to log in before you can comment on or make changes to this bug.