--- url: "https://www.w3.org/TR/css-flexbox-1/" titulek: "CSS Flexible Box Layout Module Level 1" h1: "CSS Flexible Box Layout Module Level 1" popis: "" jazyk: "en" kanonicka: "https://www.w3.org/TR/css-flexbox-1/" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:46:40" znaku: 665746 slov: 62823 kodovani: "utf-8" sha256: "b0e3b097bc6db0688d4712968c290cda280f8f750eb998bc358c28df490ff3f5" --- # CSS Flexible Box Layout Module Level 1 [W3C Candidate Recommendation Draft](https://www.w3.org/standards/types/#CRD), 14 October 2025 More details about this document This version: [https://www.w3.org/TR/2025/CRD-css-flexbox-1-20251014/](https://www.w3.org/TR/2025/CRD-css-flexbox-1-20251014/) Latest published version: [https://www.w3.org/TR/css-flexbox-1/](https://www.w3.org/TR/css-flexbox-1/) Editor's Draft: [https://drafts.csswg.org/css-flexbox/](https://drafts.csswg.org/css-flexbox/) History: [https://www.w3.org/standards/history/css-flexbox-1/](https://www.w3.org/standards/history/css-flexbox-1/) Implementation Report: [https://wpt.fyi/results/css/css-flexbox](https://wpt.fyi/results/css/css-flexbox) Feedback: [CSSWG Issues Repository](https://github.com/w3c/csswg-drafts/labels/css-flexbox-1) Inline In Spec Editors: [Tab Atkins Jr.](http://xanthir.com/contact/) (Google) [Elika J. Etemad / fantasai](http://fantasai.inkedblade.net/contact) (Apple) [Rossen Atanassov](mailto:ratan@microsoft.com) (Microsoft) Former Editors: [Alex Mogilevsky](mailto:alexmog@microsoft.com) (Microsoft Corporation) [L. David Baron](https://dbaron.org/) ([Mozilla](https://www.mozilla.org/)) [Neil Deakin](mailto:enndeakin@gmail.com) (Mozilla Corporation) [Ian Hickson](mailto:ian@hixie.ch) (formerly of Opera Software) [David Hyatt](mailto:hyatt@apple.com) (formerly of Netscape Corporation) Suggest an Edit for this Spec: [GitHub Editor](https://github.com/w3c/csswg-drafts/blob/main/css-flexbox-1/Overview.bs) Issues List: [https://drafts.csswg.org/css-flexbox-1/issues](https://drafts.csswg.org/css-flexbox-1/issues) Test Suite: [https://wpt.fyi/results/css/css-flexbox/](https://wpt.fyi/results/css/css-flexbox/) [Copyright](https://www.w3.org/policies/#copyright) © 2025 [World Wide Web Consortium](https://www.w3.org/). W3C® [liability](https://www.w3.org/policies/#Legal_Disclaimer), [trademark](https://www.w3.org/policies/#W3C_Trademarks) and [permissive document license](https://www.w3.org/copyright/software-license/) rules apply. --- ## Abstract The specification describes a CSS box model optimized for user interface design. In the flex layout model, the children of a flex container can be laid out in any direction, and can “flex” their sizes, either growing to fill unused space or shrinking to avoid overflowing the parent. Both horizontal and vertical alignment of the children can be easily manipulated. Nesting of these boxes (horizontal inside vertical, or vertical inside horizontal) can be used to build layouts in two dimensions. [CSS](https://www.w3.org/TR/CSS/) is a language for describing the rendering of structured documents (such as HTML and XML) on screen, on paper, etc. ## Status of this document *This section describes the status of this document at the time of its publication. A list of current W3C publications and the latest revision of this technical report can be found in the [W3C standards and drafts index.](https://www.w3.org/TR/)* This document was published by the [CSS Working Group](https://www.w3.org/groups/wg/css) as a **Candidate Recommendation Draft** using the [Recommendation track](https://www.w3.org/policies/process/20250818/#recs-and-notes). Publication as a Candidate Recommendation does not imply endorsement by W3C and its Members. A Candidate Recommendation Draft integrates changes from the previous Candidate Recommendation that the Working Group intends to include in a subsequent Candidate Recommendation Snapshot. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than a work in progress. Please send feedback by [filing issues in GitHub](https://github.com/w3c/csswg-drafts/issues) (preferred), including the spec code “css-flexbox” in the title, like this: “[css-flexbox] *…summary of comment…*”. All issues and comments are [archived](https://lists.w3.org/Archives/Public/public-css-archive/). Alternately, feedback can be sent to the ([archived](https://lists.w3.org/Archives/Public/www-style/)) public mailing list [www-style@w3.org](mailto:www-style@w3.org?Subject=%5Bcss-flexbox%5D%20PUT%20SUBJECT%20HERE). This document is governed by the [18 August 2025 W3C Process Document](https://www.w3.org/policies/process/20250818/). This document was produced by a group operating under the [W3C Patent Policy](https://www.w3.org/policies/patent-policy/20200915/). W3C maintains a [public list of any patent disclosures](https://www.w3.org/groups/wg/css/ipr) made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent that the individual believes contains [Essential Claim(s)](https://www.w3.org/policies/patent-policy/20200915/#def-essential) must disclose the information in accordance with [section 6 of the W3C Patent Policy](https://www.w3.org/policies/patent-policy/20200915/#sec-Disclosure). ## 1. Introduction *This section is not normative.* CSS 2.1 defined four layout modes — algorithms which determine the size and position of boxes based on their relationships with their sibling and ancestor boxes: - block layout, designed for laying out documents - inline layout, designed for laying out text - table layout, designed for laying out 2D data in a tabular format - positioned layout, designed for very explicit positioning without much regard for other elements in the document This module introduces a new layout mode, flex layout, which is designed for laying out more complex applications and webpages. ### 1.1. Overview *This section is not normative.* Flex layout is superficially similar to block layout. It lacks many of the more complex text- or document-centric properties that can be used in block layout, such as [floats](https://www.w3.org/TR/CSS2/visuren.html#floats) and [columns](https://www.w3.org/TR/css3-multicol/). In return it gains simple and powerful tools for distributing space and aligning content in ways that web apps and complex web pages often need. The contents of a flex container: - can be laid out in any flow direction (leftwards, rightwards, downwards, or even upwards!) - can have their display order reversed or 'order|rearranged' at the style layer (i.e., visual order can be independent of source and speech order) - can be laid out linearly along a single (main) axis or wrapped into multiple lines along a secondary (cross) axis - can “flex” their sizes to respond to the available space - can be aligned with respect to their container or each other on the secondary (cross) - can be dynamically collapsed or uncollapsed along the main axis while preserving the container’s cross size Here’s an example of a catalog where each item has a title, a photo, a description, and a purchase button. The designer’s intention is that each entry has the same overall size, that the photo be above the text, and that the purchase buttons are aligned at the bottom, regardless of the length of the item’s description. Flex layout makes many aspects of this design easy: - The catalog uses flex layout to lay out rows of items horizontally, and to ensure that items within a row are all equal-height. Each entry is then itself a column flex container, laying out its contents vertically. - Within each entry, the source document content is ordered logically with the title first, followed by the description and the photo. This provides a sensible ordering for speech rendering and in non-CSS browsers. For a more compelling visual presentation, however, [order](https://www.w3.org/TR/css-flexbox-1/#propdef-order) is used to pull the image up from later in the content to the top, and align-self is used to center it horizontally. - An auto margin above the purchase button forces it to the bottom within each entry box, regardless of the height of that item’s description. ``` #deals { display: flex; /* Flex layout so items have equal height */ flex-flow: row wrap; /* Allow items to wrap into multiple lines */ } .sale-item { display: flex; /* Lay out each item using flex layout */ flex-flow: column; /* Lay out item’s contents vertically */ } .sale-item > img { order: -1; /* Shift image before other content (in visual order) */ align-self: center; /* Center the image cross-wise (horizontally) */ } .sale-item > button { margin-top: auto; /* Auto top margin pushes button to bottom */ } ``` ```

Computer Starter Kit

This is the best computer money can buy, if you don’t have much money.

You get: a white computer with matching peripherals.
…
…
``` # Computer Starter Kit This is the best computer money can buy, if you don’t have much money. - Computer - Monitor - Keyboard - Mouse # Printer Only capable of printing ASCII art. - Paper and ink not included. An example rendering of the code above. ### 1.2. Module interactions This module extends the definition of the [display](https://www.w3.org/TR/css-display-4/#propdef-display) property [CSS2], adding a new block-level and new inline-level display type, and defining a new type of formatting context along with properties to control its layout. None of the properties defined in this module apply to the [::first-line](https://www.w3.org/TR/css-pseudo-4/#selectordef-first-line) or [::first-letter](https://www.w3.org/TR/css-pseudo-4/#selectordef-first-letter) pseudo-elements. The [CSS Box Alignment Module](https://www.w3.org/TR/css-align/) extends and supersedes the definitions of the alignment properties (justify-content, align-items, align-self, align-content) introduced here. Tests [flexbox_first-letter.html](https://wpt.fyi/results/css/css-flexbox/flexbox_first-letter.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_first-letter.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_first-letter.html) [flexbox_first-line.html](https://wpt.fyi/results/css/css-flexbox/flexbox_first-line.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_first-line.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_first-line.html) [flexbox-ignores-first-letter.html](https://wpt.fyi/results/css/css-flexbox/flexbox-ignores-first-letter.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-ignores-first-letter.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-ignores-first-letter.html) ### 1.3. Value Definitions This specification follows the [CSS property definition conventions](https://www.w3.org/TR/CSS2/about.html#property-defs) from [CSS2] using the [value definition syntax](https://www.w3.org/TR/css-values-3/#value-defs) from [CSS-VALUES-3]. Value types not defined in this specification are defined in CSS Values & Units [CSS-VALUES-3]. Combination with other CSS modules may expand the definitions of these value types. In addition to the property-specific values listed in their definitions, all properties defined in this specification also accept the [CSS-wide keywords](https://www.w3.org/TR/css-values-4/#css-wide-keywords) as their property value. For readability they have not been repeated explicitly. ## 2. Flex Layout Box Model and Terminology A flex container is the box generated by an element with a computed [display](https://www.w3.org/TR/css-display-4/#propdef-display) of flex or inline-flex. In-flow children of a flex container are called flex items and are laid out using the flex layout model. Unlike block and inline layout, whose layout calculations are biased to the [block and inline flow directions](https://www.w3.org/TR/css3-writing-modes/#abstract-box), flex layout is biased to the flex directions. To make it easier to talk about flex layout, this section defines a set of flex flow–relative terms. The flex-flow value and the [writing mode](https://www.w3.org/TR/css-writing-modes-4/#writing-mode) determine how these terms map to physical directions (top/right/bottom/left), axes (vertical/horizontal), and sizes (width/height). An illustration of the various directions and sizing terms as applied to a row flex container. main axis main dimension The main axis of a flex container is the primary axis along which flex items are laid out. It extends in the main dimension. main-start main-end The flex items are placed within the container starting on the main-start side and going toward the main-end side. main size main size property The main size of a flex container or flex item refers to its [width](https://www.w3.org/TR/css-sizing-3/#width) or [height](https://www.w3.org/TR/css-sizing-3/#height), whichever is in the main dimension. Its main size property is either its [width](https://www.w3.org/TR/css-sizing-3/#propdef-width) or [height](https://www.w3.org/TR/css-sizing-3/#propdef-height) property, whichever is in the main dimension. Likewise, its min and max main size properties are its [min-width](https://www.w3.org/TR/CSS2/visudet.html#propdef-min-width)/[max-width](https://www.w3.org/TR/CSS2/visudet.html#propdef-max-width) or [min-height](https://www.w3.org/TR/CSS2/visudet.html#propdef-min-height)/[max-height](https://www.w3.org/TR/CSS2/visudet.html#propdef-max-height) properties, whichever are in the main dimension, and determine its min/max main size. In flex layout, the main size is controlled by the flex property rather than directly by the main size property. Note: This means any references to a flex item’s used size in the main dimension ([width](https://www.w3.org/TR/css-sizing-3/#width), [height](https://www.w3.org/TR/css-sizing-3/#height), [inline size](https://www.w3.org/TR/css-writing-modes-4/#inline-size), [block size](https://www.w3.org/TR/css-writing-modes-4/#block-size)) refers to its post-flexing main size. cross axis cross dimension The axis perpendicular to the main axis is called the cross axis. It extends in the cross dimension. cross-start cross-end Flex lines are filled with items and placed into the container starting on the cross-start side of the flex container and going toward the cross-end side. cross size cross size property The cross size of a flex container or flex item refers to its [width](https://www.w3.org/TR/css-sizing-3/#width) or [height](https://www.w3.org/TR/css-sizing-3/#height), whichever is in the cross dimension. Its cross size property is either its [width](https://www.w3.org/TR/css-sizing-3/#propdef-width) or [height](https://www.w3.org/TR/css-sizing-3/#propdef-height) property, whichever is in the cross dimension. Likewise, its min and max cross size properties are its [min-width](https://www.w3.org/TR/CSS2/visudet.html#propdef-min-width)/[max-width](https://www.w3.org/TR/CSS2/visudet.html#propdef-max-width) or [min-height](https://www.w3.org/TR/CSS2/visudet.html#propdef-min-height)/[max-height](https://www.w3.org/TR/CSS2/visudet.html#propdef-max-height) properties, whichever are in the cross dimension, and determine its min/max cross size. Additional sizing terminology used in this specification is defined in [CSS Intrinsic and Extrinsic Sizing](https://www.w3.org/TR/CSS-SIZING-3/). [CSS-SIZING-3] Tests [box-sizing-min-max-sizes-001.html](https://wpt.fyi/results/css/css-flexbox/box-sizing-min-max-sizes-001.html) [(live test)](http://wpt.live/css/css-flexbox/box-sizing-min-max-sizes-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/box-sizing-min-max-sizes-001.html) ## 3. Flex Containers: the flex and inline-flex [display](https://www.w3.org/TR/css-display-4/#propdef-display) values | Name: [display](https://www.w3.org/TR/css-display-4/#propdef-display) | | --- | | [New values:](https://www.w3.org/TR/css-values/#value-defs) flex [\|](https://www.w3.org/TR/css-values-4/#comb-one) inline-flex | Tests [inheritance.html](https://wpt.fyi/results/css/css-flexbox/inheritance.html) [(live test)](http://wpt.live/css/css-flexbox/inheritance.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inheritance.html) flex This value causes an element to generate a flex container box that is [block-level](https://www.w3.org/TR/css-display-4/#block-level) when placed in [flow layout](https://www.w3.org/TR/css-display-4/#flow-layout). Tests [baseline-synthesis-001.html](https://wpt.fyi/results/css/css-flexbox/baseline-synthesis-001.html) [(live test)](http://wpt.live/css/css-flexbox/baseline-synthesis-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/baseline-synthesis-001.html) [baseline-synthesis-002.html](https://wpt.fyi/results/css/css-flexbox/baseline-synthesis-002.html) [(live test)](http://wpt.live/css/css-flexbox/baseline-synthesis-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/baseline-synthesis-002.html) [baseline-synthesis-003.html](https://wpt.fyi/results/css/css-flexbox/baseline-synthesis-003.html) [(live test)](http://wpt.live/css/css-flexbox/baseline-synthesis-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/baseline-synthesis-003.html) [baseline-synthesis-004.html](https://wpt.fyi/results/css/css-flexbox/baseline-synthesis-004.html) [(live test)](http://wpt.live/css/css-flexbox/baseline-synthesis-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/baseline-synthesis-004.html) [baseline-synthesis-vert-lr-line-under.html](https://wpt.fyi/results/css/css-flexbox/baseline-synthesis-vert-lr-line-under.html) [(live test)](http://wpt.live/css/css-flexbox/baseline-synthesis-vert-lr-line-under.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/baseline-synthesis-vert-lr-line-under.html) [display-flex-001.htm](https://wpt.fyi/results/css/css-flexbox/display-flex-001.htm) [(live test)](http://wpt.live/css/css-flexbox/display-flex-001.htm) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/display-flex-001.htm) [dynamic-change-simplified-layout-002.html](https://wpt.fyi/results/css/css-flexbox/dynamic-change-simplified-layout-002.html) [(live test)](http://wpt.live/css/css-flexbox/dynamic-change-simplified-layout-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/dynamic-change-simplified-layout-002.html) [dynamic-change-simplified-layout.html](https://wpt.fyi/results/css/css-flexbox/dynamic-change-simplified-layout.html) [(live test)](http://wpt.live/css/css-flexbox/dynamic-change-simplified-layout.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/dynamic-change-simplified-layout.html) [fixedpos-video-in-abspos-quirk-crash.html](https://wpt.fyi/results/css/css-flexbox/fixedpos-video-in-abspos-quirk-crash.html) [(live test)](http://wpt.live/css/css-flexbox/fixedpos-video-in-abspos-quirk-crash.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/fixedpos-video-in-abspos-quirk-crash.html) [flexbox_flex-0-0-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-0.html) [flexbox_flex-0-0-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-0-unitless.html) [flexbox_flex-0-0-1-unitless-basis.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-1-unitless-basis.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-1-unitless-basis.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-1-unitless-basis.html) [flexbox_flex-0-0-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-auto.html) [flexbox_flex-0-0-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-auto-shrink.html) [flexbox_flex-0-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0.html) [flexbox_flex-0-0-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-N.html) [flexbox_flex-0-0-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-Npercent.html) [flexbox_flex-0-0-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-Npercent-shrink.html) [flexbox_flex-0-0-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-N-shrink.html) [flexbox_flex-0-0-N-unitless-basis.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-0-N-unitless-basis.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-0-N-unitless-basis.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-0-N-unitless-basis.html) [flexbox_flex-0-1-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-0.html) [flexbox_flex-0-1-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-0-unitless.html) [flexbox_flex-0-1-1-unitless-basis.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-1-unitless-basis.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-1-unitless-basis.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-1-unitless-basis.html) [flexbox_flex-0-1-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-auto.html) [flexbox_flex-0-1-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-auto-shrink.html) [flexbox_flex-0-1.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1.html) [flexbox_flex-0-1-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-N.html) [flexbox_flex-0-1-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-Npercent.html) [flexbox_flex-0-1-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-Npercent-shrink.html) [flexbox_flex-0-1-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-N-shrink.html) [flexbox_flex-0-1-N-unitless-basis.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-1-N-unitless-basis.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-1-N-unitless-basis.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-1-N-unitless-basis.html) [flexbox_flex-0-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-auto.html) [flexbox_flex-0-N-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-0.html) [flexbox_flex-0-N-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-0-unitless.html) [flexbox_flex-0-N-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-auto.html) [flexbox_flex-0-N-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-auto-shrink.html) [flexbox_flex-0-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N.html) [flexbox_flex-0-N-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-N.html) [flexbox_flex-0-N-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-Npercent.html) [flexbox_flex-0-N-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-Npercent-shrink.html) [flexbox_flex-0-N-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-0-N-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-0-N-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-0-N-N-shrink.html) [flexbox_flex-1-0-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-0.html) [flexbox_flex-1-0-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-0-unitless.html) [flexbox_flex-1-0-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-auto.html) [flexbox_flex-1-0-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-auto-shrink.html) [flexbox_flex-1-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0.html) [flexbox_flex-1-0-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-N.html) [flexbox_flex-1-0-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-Npercent.html) [flexbox_flex-1-0-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-Npercent-shrink.html) [flexbox_flex-1-0-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-0-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-0-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-0-N-shrink.html) [flexbox_flex-1-1-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-0.html) [flexbox_flex-1-1-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-0-unitless.html) [flexbox_flex-1-1-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-auto.html) [flexbox_flex-1-1-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-auto-shrink.html) [flexbox_flex-1-1.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1.html) [flexbox_flex-1-1-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-N.html) [flexbox_flex-1-1-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-Npercent.html) [flexbox_flex-1-1-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-Npercent-shrink.html) [flexbox_flex-1-1-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-1-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-1-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-1-N-shrink.html) [flexbox_flex-1-N-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-0.html) [flexbox_flex-1-N-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-0-unitless.html) [flexbox_flex-1-N-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-auto.html) [flexbox_flex-1-N-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-auto-shrink.html) [flexbox_flex-1-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N.html) [flexbox_flex-1-N-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-N.html) [flexbox_flex-1-N-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-Npercent.html) [flexbox_flex-1-N-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-Npercent-shrink.html) [flexbox_flex-1-N-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-1-N-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-1-N-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-1-N-N-shrink.html) [flexbox_flex-N-0-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-0.html) [flexbox_flex-N-0-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-0-unitless.html) [flexbox_flex-N-0-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-auto.html) [flexbox_flex-N-0-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-auto-shrink.html) [flexbox_flex-N-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0.html) [flexbox_flex-N-0-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-N.html) [flexbox_flex-N-0-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-Npercent.html) [flexbox_flex-N-0-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-Npercent-shrink.html) [flexbox_flex-N-0-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-0-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-0-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-0-N-shrink.html) [flexbox_flex-N-1-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-0.html) [flexbox_flex-N-1-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-0-unitless.html) [flexbox_flex-N-1-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-auto.html) [flexbox_flex-N-1-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-auto-shrink.html) [flexbox_flex-N-1.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1.html) [flexbox_flex-N-1-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-N.html) [flexbox_flex-N-1-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-Npercent.html) [flexbox_flex-N-1-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-Npercent-shrink.html) [flexbox_flex-N-1-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-1-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-1-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-1-N-shrink.html) [flexbox_flex-N-N-0.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-0.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-0.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-0.html) [flexbox_flex-N-N-0-unitless.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-0-unitless.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-0-unitless.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-0-unitless.html) [flexbox_flex-N-N-auto.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-auto.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-auto.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-auto.html) [flexbox_flex-N-N-auto-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-auto-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-auto-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-auto-shrink.html) [flexbox_flex-N-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N.html) [flexbox_flex-N-N-N.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-N.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-N.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-N.html) [flexbox_flex-N-N-Npercent.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-Npercent.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-Npercent.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-Npercent.html) [flexbox_flex-N-N-Npercent-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-Npercent-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-Npercent-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-Npercent-shrink.html) [flexbox_flex-N-N-N-shrink.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-N-N-N-shrink.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-N-N-N-shrink.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-N-N-N-shrink.html) [flexbox_flex-formatting-interop.html](https://wpt.fyi/results/css/css-flexbox/flexbox_flex-formatting-interop.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_flex-formatting-interop.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_flex-formatting-interop.html) [flexbox_generated-flex.html](https://wpt.fyi/results/css/css-flexbox/flexbox_generated-flex.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_generated-flex.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_generated-flex.html) [flexbox_generated.html](https://wpt.fyi/results/css/css-flexbox/flexbox_generated.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_generated.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_generated.html) [flexbox_generated-nested-flex.html](https://wpt.fyi/results/css/css-flexbox/flexbox_generated-nested-flex.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_generated-nested-flex.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_generated-nested-flex.html) [flexbox-iframe-intrinsic-size-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-iframe-intrinsic-size-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-iframe-intrinsic-size-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-iframe-intrinsic-size-001.html) [flexbox_item-bottom-float.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-bottom-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-bottom-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-bottom-float.html) [flexbox_item-clear.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-clear.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-clear.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-clear.html) [flexbox_item-float.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-float.html) [flexbox_item-top-float.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-top-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-top-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-top-float.html) [flexbox_item-vertical-align.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-vertical-align.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-vertical-align.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-vertical-align.html) [flexbox_block.html](https://wpt.fyi/results/css/css-flexbox/flexbox_block.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_block.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_block.html) [flexbox_box-clear.html](https://wpt.fyi/results/css/css-flexbox/flexbox_box-clear.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_box-clear.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_box-clear.html) [flexbox_display.html](https://wpt.fyi/results/css/css-flexbox/flexbox_display.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_display.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_display.html) [flexbox_fbfc2.html](https://wpt.fyi/results/css/css-flexbox/flexbox_fbfc2.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_fbfc2.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_fbfc2.html) [flexbox_fbfc.html](https://wpt.fyi/results/css/css-flexbox/flexbox_fbfc.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_fbfc.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_fbfc.html) [flexbox_nested-flex.html](https://wpt.fyi/results/css/css-flexbox/flexbox_nested-flex.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_nested-flex.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_nested-flex.html) [flexbox-root-node-001a.html](https://wpt.fyi/results/css/css-flexbox/flexbox-root-node-001a.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-root-node-001a.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-root-node-001a.html) [flexbox-root-node-001b.html](https://wpt.fyi/results/css/css-flexbox/flexbox-root-node-001b.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-root-node-001b.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-root-node-001b.html) [flexbox_stf-fixpos.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-fixpos.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-fixpos.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-fixpos.html) [flexbox_stf-float.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-float.html) [flexbox_stf-inline-block.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-inline-block.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-inline-block.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-inline-block.html) [flexbox_stf-table-caption.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-caption.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-caption.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-caption.html) [flexbox_stf-table-cell.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-cell.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-cell.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-cell.html) [flexbox_stf-table.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table.html) [flexbox_stf-table-row-group.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-row-group.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-row-group.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-row-group.html) [flexbox_stf-table-row.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-row.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-row.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-row.html) [flexbox_stf-table-singleline-2.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-singleline-2.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-singleline-2.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-singleline-2.html) [flexbox_stf-table-singleline.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-table-singleline.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-table-singleline.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-table-singleline.html) [flexbox_table-fixed-layout.html](https://wpt.fyi/results/css/css-flexbox/flexbox_table-fixed-layout.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_table-fixed-layout.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_table-fixed-layout.html) [flexbox-with-multi-column-property.html](https://wpt.fyi/results/css/css-flexbox/flexbox-with-multi-column-property.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-with-multi-column-property.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-with-multi-column-property.html) [flexbox_computedstyle_display.html](https://wpt.fyi/results/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display.html) [(live test)](http://wpt.live/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display.html) [grid-flex-item-001.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-001.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-001.html) [grid-flex-item-002.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-002.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-002.html) [grid-flex-item-003.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-003.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-003.html) [grid-flex-item-004.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-004.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-004.html) [grid-flex-item-005.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-005.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-005.html) [grid-flex-item-006.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-006.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-006.html) [grid-flex-item-007.html](https://wpt.fyi/results/css/css-flexbox/grid-flex-item-007.html) [(live test)](http://wpt.live/css/css-flexbox/grid-flex-item-007.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/grid-flex-item-007.html) flexbox_interactive_flex-transitions.html (manual test) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/interactive/flexbox_interactive_flex-transitions.html) flexbox_interactive_order-transitions-2.html (manual test) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/interactive/flexbox_interactive_order-transitions-2.html) flexbox_interactive_order-transitions.html (manual test) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/interactive/flexbox_interactive_order-transitions.html) [nested-flex-image-loading-invalidates-intrinsic-sizes.html](https://wpt.fyi/results/css/css-flexbox/nested-flex-image-loading-invalidates-intrinsic-sizes.html) [(live test)](http://wpt.live/css/css-flexbox/nested-flex-image-loading-invalidates-intrinsic-sizes.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/nested-flex-image-loading-invalidates-intrinsic-sizes.html) [percentage-margins-001.html](https://wpt.fyi/results/css/css-flexbox/percentage-margins-001.html) [(live test)](http://wpt.live/css/css-flexbox/percentage-margins-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/percentage-margins-001.html) [stretch-after-sibling-size-change.html](https://wpt.fyi/results/css/css-flexbox/stretch-after-sibling-size-change.html) [(live test)](http://wpt.live/css/css-flexbox/stretch-after-sibling-size-change.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretch-after-sibling-size-change.html) [stretched-child-in-nested-flexbox-001.html](https://wpt.fyi/results/css/css-flexbox/stretched-child-in-nested-flexbox-001.html) [(live test)](http://wpt.live/css/css-flexbox/stretched-child-in-nested-flexbox-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretched-child-in-nested-flexbox-001.html) [stretched-child-in-nested-flexbox-002.html](https://wpt.fyi/results/css/css-flexbox/stretched-child-in-nested-flexbox-002.html) [(live test)](http://wpt.live/css/css-flexbox/stretched-child-in-nested-flexbox-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretched-child-in-nested-flexbox-002.html) [stretched-child-in-nested-flexbox-003.html](https://wpt.fyi/results/css/css-flexbox/stretched-child-in-nested-flexbox-003.html) [(live test)](http://wpt.live/css/css-flexbox/stretched-child-in-nested-flexbox-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretched-child-in-nested-flexbox-003.html) [stretched-child-shrink-on-relayout.html](https://wpt.fyi/results/css/css-flexbox/stretched-child-shrink-on-relayout.html) [(live test)](http://wpt.live/css/css-flexbox/stretched-child-shrink-on-relayout.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretched-child-shrink-on-relayout.html) [stretch-flex-item-checkbox-input.html](https://wpt.fyi/results/css/css-flexbox/stretch-flex-item-checkbox-input.html) [(live test)](http://wpt.live/css/css-flexbox/stretch-flex-item-checkbox-input.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretch-flex-item-checkbox-input.html) [stretch-flex-item-radio-input.html](https://wpt.fyi/results/css/css-flexbox/stretch-flex-item-radio-input.html) [(live test)](http://wpt.live/css/css-flexbox/stretch-flex-item-radio-input.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretch-flex-item-radio-input.html) [stretching-orthogonal-flows.html](https://wpt.fyi/results/css/css-flexbox/stretching-orthogonal-flows.html) [(live test)](http://wpt.live/css/css-flexbox/stretching-orthogonal-flows.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/stretching-orthogonal-flows.html) [table-with-percent-intrinsic-width.html](https://wpt.fyi/results/css/css-flexbox/table-with-percent-intrinsic-width.html) [(live test)](http://wpt.live/css/css-flexbox/table-with-percent-intrinsic-width.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/table-with-percent-intrinsic-width.html) inline-flex This value causes an element to generate a flex container box that is [inline-level](https://www.w3.org/TR/css-display-4/#inline-level) when placed in [flow layout](https://www.w3.org/TR/css-display-4/#flow-layout). Tests [flexbox_inline.html](https://wpt.fyi/results/css/css-flexbox/flexbox_inline.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_inline.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_inline.html) [flex-inline.html](https://wpt.fyi/results/css/css-flexbox/flex-inline.html) [(live test)](http://wpt.live/css/css-flexbox/flex-inline.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-inline.html) [flexbox_inline-float.html](https://wpt.fyi/results/css/css-flexbox/flexbox_inline-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_inline-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_inline-float.html) [inline-flexbox-absurd-block-size-crash.html](https://wpt.fyi/results/css/css-flexbox/inline-flexbox-absurd-block-size-crash.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flexbox-absurd-block-size-crash.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flexbox-absurd-block-size-crash.html) [inline-flexbox-wrap-vertically-width-calculation.html](https://wpt.fyi/results/css/css-flexbox/inline-flexbox-wrap-vertically-width-calculation.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flexbox-wrap-vertically-width-calculation.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flexbox-wrap-vertically-width-calculation.html) [inline-flex-editing-crash.html](https://wpt.fyi/results/css/css-flexbox/inline-flex-editing-crash.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flex-editing-crash.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flex-editing-crash.html) [inline-flex-editing-with-updating-text-crash.html](https://wpt.fyi/results/css/css-flexbox/inline-flex-editing-with-updating-text-crash.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flex-editing-with-updating-text-crash.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flex-editing-with-updating-text-crash.html) [inline-flex-frameset-main-axis-crash.html](https://wpt.fyi/results/css/css-flexbox/inline-flex-frameset-main-axis-crash.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flex-frameset-main-axis-crash.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flex-frameset-main-axis-crash.html) [inline-flex.html](https://wpt.fyi/results/css/css-flexbox/inline-flex.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flex.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flex.html) [inline-flex-min-content-height.html](https://wpt.fyi/results/css/css-flexbox/inline-flex-min-content-height.html) [(live test)](http://wpt.live/css/css-flexbox/inline-flex-min-content-height.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/inline-flex-min-content-height.html) [flexbox_computedstyle_display-inline.html](https://wpt.fyi/results/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display-inline.html) [(live test)](http://wpt.live/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display-inline.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/getcomputedstyle/flexbox_computedstyle_display-inline.html) [intrinsic-width-orthogonal-writing-mode.html](https://wpt.fyi/results/css/css-flexbox/intrinsic-width-orthogonal-writing-mode.html) [(live test)](http://wpt.live/css/css-flexbox/intrinsic-width-orthogonal-writing-mode.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/intrinsic-width-orthogonal-writing-mode.html) A flex container establishes a new flex formatting context for its contents. This is the same as establishing a block formatting context, except that flex layout is used instead of block layout. For example, floats do not intrude into the flex container, and the flex container’s margins do not collapse with the margins of its contents. Flex containers form a containing block for their contents [exactly like block containers do](https://www.w3.org/TR/CSS2/visudet.html#containing-block-details). [CSS2] The [overflow](https://www.w3.org/TR/css-overflow-3/#propdef-overflow) property applies to flex containers. Tests [flexbox-overflow-horiz-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-horiz-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-horiz-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-horiz-001.html) [flexbox-overflow-horiz-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-horiz-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-horiz-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-horiz-002.html) [flexbox-overflow-horiz-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-horiz-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-horiz-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-horiz-003.html) [flexbox-overflow-horiz-004.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-horiz-004.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-horiz-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-horiz-004.html) [flexbox-overflow-horiz-005.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-horiz-005.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-horiz-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-horiz-005.html) [flexbox-overflow-padding-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-padding-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-padding-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-padding-001.html) [flexbox-overflow-padding-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-padding-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-padding-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-padding-002.html) [flexbox-overflow-vert-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-vert-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-vert-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-vert-001.html) [flexbox-overflow-vert-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-vert-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-vert-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-vert-002.html) [flexbox-overflow-vert-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-vert-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-vert-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-vert-003.html) [flexbox-overflow-vert-004.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-vert-004.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-vert-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-vert-004.html) [flexbox-overflow-vert-005.html](https://wpt.fyi/results/css/css-flexbox/flexbox-overflow-vert-005.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-overflow-vert-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-overflow-vert-005.html) [flexbox_rowspan-overflow-automatic.html](https://wpt.fyi/results/css/css-flexbox/flexbox_rowspan-overflow-automatic.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_rowspan-overflow-automatic.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_rowspan-overflow-automatic.html) [flexbox_rowspan-overflow.html](https://wpt.fyi/results/css/css-flexbox/flexbox_rowspan-overflow.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_rowspan-overflow.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_rowspan-overflow.html) [flexbox-safe-overflow-position-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-001.html) [flexbox-safe-overflow-position-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-002.html) [flexbox-safe-overflow-position-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-003.html) [flexbox-safe-overflow-position-004.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-004.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-004.html) [flexbox-safe-overflow-position-005.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-005.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-005.html) [flexbox-safe-overflow-position-006.html](https://wpt.fyi/results/css/css-flexbox/flexbox-safe-overflow-position-006.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-safe-overflow-position-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-safe-overflow-position-006.html) [flexbox_width-overflow.html](https://wpt.fyi/results/css/css-flexbox/flexbox_width-overflow.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_width-overflow.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_width-overflow.html) [min-size-auto-overflow-clip.html](https://wpt.fyi/results/css/css-flexbox/min-size-auto-overflow-clip.html) [(live test)](http://wpt.live/css/css-flexbox/min-size-auto-overflow-clip.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/min-size-auto-overflow-clip.html) [negative-overflow-002.html](https://wpt.fyi/results/css/css-flexbox/negative-overflow-002.html) [(live test)](http://wpt.live/css/css-flexbox/negative-overflow-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/negative-overflow-002.html) [negative-overflow-003.html](https://wpt.fyi/results/css/css-flexbox/negative-overflow-003.html) [(live test)](http://wpt.live/css/css-flexbox/negative-overflow-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/negative-overflow-003.html) [negative-overflow.html](https://wpt.fyi/results/css/css-flexbox/negative-overflow.html) [(live test)](http://wpt.live/css/css-flexbox/negative-overflow.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/negative-overflow.html) [overflow-area-001.html](https://wpt.fyi/results/css/css-flexbox/overflow-area-001.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-area-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-area-001.html) [overflow-area-002.html](https://wpt.fyi/results/css/css-flexbox/overflow-area-002.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-area-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-area-002.html) [overflow-area-003.html](https://wpt.fyi/results/css/css-flexbox/overflow-area-003.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-area-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-area-003.html) [overflow-auto-001.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-001.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-001.html) [overflow-auto-002.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-002.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-002.html) [overflow-auto-003.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-003.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-003.html) [overflow-auto-004.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-004.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-004.html) [overflow-auto-005.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-005.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-005.html) [overflow-auto-006.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-006.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-006.html) [overflow-auto-007.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-007.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-007.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-007.html) [overflow-auto-008.html](https://wpt.fyi/results/css/css-flexbox/overflow-auto-008.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-auto-008.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-auto-008.html) [overflow-top-left.html](https://wpt.fyi/results/css/css-flexbox/overflow-top-left.html) [(live test)](http://wpt.live/css/css-flexbox/overflow-top-left.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/overflow-top-left.html) [padding-overflow.html](https://wpt.fyi/results/css/css-flexbox/padding-overflow.html) [(live test)](http://wpt.live/css/css-flexbox/padding-overflow.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/padding-overflow.html) [text-overflow-on-flexbox-001.html](https://wpt.fyi/results/css/css-flexbox/text-overflow-on-flexbox-001.html) [(live test)](http://wpt.live/css/css-flexbox/text-overflow-on-flexbox-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/text-overflow-on-flexbox-001.html) [synthesize-vrl-baseline.html](https://wpt.fyi/results/css/css-flexbox/synthesize-vrl-baseline.html) [(live test)](http://wpt.live/css/css-flexbox/synthesize-vrl-baseline.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/synthesize-vrl-baseline.html) Flex containers are not block containers, and so some properties that were designed with the assumption of block layout don’t apply in the context of flex layout. In particular: - [float](https://www.w3.org/TR/CSS2/visuren.html#propdef-float) and [clear](https://www.w3.org/TR/CSS2/visuren.html#propdef-clear) do not create floating or clearance of flex item, and do not take it out-of-flow. - [vertical-align](https://www.w3.org/TR/css-inline-3/#propdef-vertical-align) has no effect on a flex item. - the [::first-line](https://www.w3.org/TR/css-pseudo-4/#selectordef-first-line) and [::first-letter](https://www.w3.org/TR/css-pseudo-4/#selectordef-first-letter) pseudo-elements do not apply to flex containers, and flex containers do not contribute a [first formatted line](https://www.w3.org/TR/css-pseudo-4/#first-formatted-line) or first letter to their ancestors. Tests [align-content-wrap-004.html](https://wpt.fyi/results/css/css-flexbox/align-content-wrap-004.html) [(live test)](http://wpt.live/css/css-flexbox/align-content-wrap-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/align-content-wrap-004.html) [align-items-baseline-column-vert-lr-table-item.html](https://wpt.fyi/results/css/css-flexbox/align-items-baseline-column-vert-lr-table-item.html) [(live test)](http://wpt.live/css/css-flexbox/align-items-baseline-column-vert-lr-table-item.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/align-items-baseline-column-vert-lr-table-item.html) [align-items-baseline-vert-lr-column-horz-table-item.html](https://wpt.fyi/results/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.html) [(live test)](http://wpt.live/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/align-items-baseline-vert-lr-column-horz-table-item.html) [align-items-baseline-vert-rl-column-horz-table-item.html](https://wpt.fyi/results/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.html) [(live test)](http://wpt.live/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/align-items-baseline-vert-rl-column-horz-table-item.html) [flexbox_box-clear.html](https://wpt.fyi/results/css/css-flexbox/flexbox_box-clear.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_box-clear.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_box-clear.html) [flexbox_first-letter.html](https://wpt.fyi/results/css/css-flexbox/flexbox_first-letter.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_first-letter.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_first-letter.html) [flexbox_first-line.html](https://wpt.fyi/results/css/css-flexbox/flexbox_first-line.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_first-line.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_first-line.html) [flexbox-ignores-first-letter.html](https://wpt.fyi/results/css/css-flexbox/flexbox-ignores-first-letter.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-ignores-first-letter.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-ignores-first-letter.html) [flexbox_item-vertical-align.html](https://wpt.fyi/results/css/css-flexbox/flexbox_item-vertical-align.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_item-vertical-align.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_item-vertical-align.html) [flexbox-with-pseudo-elements-001.html](https://wpt.fyi/results/css/css-flexbox/flexbox-with-pseudo-elements-001.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-with-pseudo-elements-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-with-pseudo-elements-001.html) [flexbox-with-pseudo-elements-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-with-pseudo-elements-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-with-pseudo-elements-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-with-pseudo-elements-002.html) [flexbox-with-pseudo-elements-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-with-pseudo-elements-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-with-pseudo-elements-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-with-pseudo-elements-003.html) [flexible-box-float.html](https://wpt.fyi/results/css/css-flexbox/flexible-box-float.html) [(live test)](http://wpt.live/css/css-flexbox/flexible-box-float.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexible-box-float.html) [flex-item-vertical-align.html](https://wpt.fyi/results/css/css-flexbox/flex-item-vertical-align.html) [(live test)](http://wpt.live/css/css-flexbox/flex-item-vertical-align.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-item-vertical-align.html) [flex-vertical-align-effect.html](https://wpt.fyi/results/css/css-flexbox/flex-vertical-align-effect.html) [(live test)](http://wpt.live/css/css-flexbox/flex-vertical-align-effect.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-vertical-align-effect.html) [hittest-before-pseudo.html](https://wpt.fyi/results/css/css-flexbox/hittest-before-pseudo.html) [(live test)](http://wpt.live/css/css-flexbox/hittest-before-pseudo.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/hittest-before-pseudo.html) If an element’s specified [display](https://www.w3.org/TR/css-display-4/#propdef-display) is inline-flex, then its display property computes to flex in certain circumstances: the table in [CSS 2.1 Section 9.7](https://www.w3.org/TR/CSS2/visuren.html#dis-pos-flo) is amended to contain an additional row, with inline-flex in the "Specified Value" column and flex in the "Computed Value" column. ## 4. Flex Items Loosely speaking, the flex items of a flex container are boxes representing its in-flow contents. Each in-flow child of a flex container becomes a flex item, and each child [text sequence](https://www.w3.org/TR/css-display-4/#css-text-sequence) is wrapped in an [anonymous](https://www.w3.org/TR/css-display-4/#anonymous) [block container](https://www.w3.org/TR/css-display-4/#block-container) flex item. However, if the entire text sequences contains only [document white space characters](https://www.w3.org/TR/css-text-4/#white-space) (i.e. characters that can be affected by the [white-space](https://www.w3.org/TR/css-text-4/#propdef-white-space) property) it is instead not rendered (just as if its [text nodes](https://www.w3.org/TR/css-display-4/#text-nodes) were display:none). Tests [anonymous-block.html](https://wpt.fyi/results/css/css-flexbox/anonymous-block.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-block.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-block.html) [anonymous-flex-item-001.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-001.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-001.html) [anonymous-flex-item-002.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-002.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-002.html) [anonymous-flex-item-003.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-003.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-003.html) [anonymous-flex-item-004.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-004.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-004.html) [anonymous-flex-item-005.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-005.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-005.html) [anonymous-flex-item-006.html](https://wpt.fyi/results/css/css-flexbox/anonymous-flex-item-006.html) [(live test)](http://wpt.live/css/css-flexbox/anonymous-flex-item-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/anonymous-flex-item-006.html) [canvas-dynamic-change-001.html](https://wpt.fyi/results/css/css-flexbox/canvas-dynamic-change-001.html) [(live test)](http://wpt.live/css/css-flexbox/canvas-dynamic-change-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/canvas-dynamic-change-001.html) [column-flex-child-with-max-width.html](https://wpt.fyi/results/css/css-flexbox/column-flex-child-with-max-width.html) [(live test)](http://wpt.live/css/css-flexbox/column-flex-child-with-max-width.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/column-flex-child-with-max-width.html) [flexbox-whitespace-handling-001a.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-whitespace-handling-001a.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-whitespace-handling-001a.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-whitespace-handling-001a.xhtml) [flexbox-whitespace-handling-001b.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-whitespace-handling-001b.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-whitespace-handling-001b.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-whitespace-handling-001b.xhtml) [flexbox-whitespace-handling-002.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-whitespace-handling-002.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-whitespace-handling-002.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-whitespace-handling-002.xhtml) [hittest-anonymous-box.html](https://wpt.fyi/results/css/css-flexbox/hittest-anonymous-box.html) [(live test)](http://wpt.live/css/css-flexbox/hittest-anonymous-box.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/hittest-anonymous-box.html) [percentage-descendant-of-anonymous-flex-item.html](https://wpt.fyi/results/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html) [(live test)](http://wpt.live/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/percentage-descendant-of-anonymous-flex-item.html) [percentage-size-subitems-001.html](https://wpt.fyi/results/css/css-flexbox/percentage-size-subitems-001.html) [(live test)](http://wpt.live/css/css-flexbox/percentage-size-subitems-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/percentage-size-subitems-001.html) [whitespace-in-flexitem-001.html](https://wpt.fyi/results/css/css-flexbox/whitespace-in-flexitem-001.html) [(live test)](http://wpt.live/css/css-flexbox/whitespace-in-flexitem-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/whitespace-in-flexitem-001.html) Examples of flex items: ```
block
float
anonymous item 3 item 4 item 4 item 4
``` Flex items determined from above code block Note that the inter-element white space disappears: it does not become its own flex item, even though the inter-element text *does* get wrapped in an anonymous flex item. Note also that the anonymous item’s box is unstyleable, since there is no element to assign style rules to. Its contents will however inherit styles (such as font settings) from the flex container. A flex item [establishes an independent formatting context](https://www.w3.org/TR/css-display-4/#establish-an-independent-formatting-context) for its contents. However, flex items themselves are flex-level boxes, not block-level boxes: they participate in their container’s flex formatting context, not in a block formatting context. --- Note: Authors reading this spec may want to skip past the following box-generation and static position details. If the [computed](https://www.w3.org/TR/css-cascade-5/#computed-value) [display](https://www.w3.org/TR/css-display-4/#propdef-display) value of an element’s nearest ancestor element (skipping display:contents ancestors) is flex or inline-flex, the element’s own display value is [blockified](https://www.w3.org/TR/css-display-4/#blockify). (See [CSS2.1§9.7](https://www.w3.org/TR/CSS2/visuren.html#dis-pos-flo) [CSS2] and [CSS Display 3 § 2.7 Automatic Box Type Transformations](https://www.w3.org/TR/css-display-3/#transformations) for details on this type of display value conversion.) Note: Blockification still occurs even when the flex or inline-flex element does not end up generating a flex container box, e.g. when it is [replaced](https://www.w3.org/TR/css-display-4/#replaced-element) or in a [display: none](https://www.w3.org/TR/css-display-4/#propdef-display) subtree. Note: Some values of [display](https://www.w3.org/TR/css-display-4/#propdef-display) normally trigger the creation of anonymous boxes around the original box. If such a box is a flex item, it is blockified first, and so anonymous box creation will not happen. For example, two contiguous flex items with display: table-cell will become two separate display: block flex items, instead of being wrapped into a single anonymous table. In the case of flex items with [display: table](https://www.w3.org/TR/css-display-4/#propdef-display), the table wrapper box becomes the flex item, so the align-self property applies to it. The contents of any caption boxes contribute to the calculation of the table wrapper box’s min-content and max-content sizes. However, like [width](https://www.w3.org/TR/css-sizing-3/#propdef-width) and [height](https://www.w3.org/TR/css-sizing-3/#propdef-height), the flex longhands apply to the table box as follows: the flex item’s final size is calculated by performing layout as if the distance between the table wrapper box’s edges and the table box’s content edges were all part of the table box’s border+padding area, and the table box were the flex item. Tests [flexbox-table-fixup-001.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-table-fixup-001.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-table-fixup-001.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-table-fixup-001.xhtml) ### 4.1. Absolutely-Positioned Flex Children As it is out-of-flow, an absolutely-positioned child of a flex container does not participate in flex layout. The cross-axis edges of the [static-position rectangle](https://www.w3.org/TR/css-position-3/#static-position-rectangle) of an absolutely-positioned child of a flex container are the [content edges](https://www.w3.org/TR/css-box-4/#content-edge) of the flex container. The main-axis edges of the static-position rectangle are where the [margin edges](https://www.w3.org/TR/css-box-4/#margin-edge) of the child would be positioned if it were the sole flex item in the flex container, assuming both the child and the flex container were fixed-size boxes of their used size. (For this purpose, the child’s auto margins are treated as zero.) Tests [abspos-autopos-htb-ltr.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-htb-ltr.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-htb-ltr.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-htb-ltr.html) [abspos-autopos-htb-rtl.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-htb-rtl.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-htb-rtl.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-htb-rtl.html) [abspos-autopos-vlr-ltr.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-vlr-ltr.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-vlr-ltr.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-vlr-ltr.html) [abspos-autopos-vlr-rtl.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-vlr-rtl.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-vlr-rtl.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-vlr-rtl.html) [abspos-autopos-vrl-ltr.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-vrl-ltr.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-vrl-ltr.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-vrl-ltr.html) [abspos-autopos-vrl-rtl.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-autopos-vrl-rtl.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-autopos-vrl-rtl.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-autopos-vrl-rtl.html) [dynamic-align-self-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/dynamic-align-self-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/dynamic-align-self-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/dynamic-align-self-001.html) [flex-abspos-staticpos-align-self-safe-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-002.html) [flex-abspos-staticpos-align-self-safe-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-003.html) [abspos-descendent-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/abspos-descendent-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/abspos-descendent-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/abspos-descendent-001.html) [flex-abspos-staticpos-align-content-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-content-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-content-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-content-001.html) [flex-abspos-staticpos-align-self-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-001.html) [flex-abspos-staticpos-align-self-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-002.html) [flex-abspos-staticpos-align-self-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-003.html) [flex-abspos-staticpos-align-self-004.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-004.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-004.html) [flex-abspos-staticpos-align-self-005.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-005.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-005.html) [flex-abspos-staticpos-align-self-006.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-006.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-006.html) [flex-abspos-staticpos-align-self-007.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-007.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-007.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-007.html) [flex-abspos-staticpos-align-self-008.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-008.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-008.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-008.html) [flex-abspos-staticpos-align-self-rtl-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-001.html) [flex-abspos-staticpos-align-self-rtl-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-002.html) [flex-abspos-staticpos-align-self-rtl-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-003.html) [flex-abspos-staticpos-align-self-rtl-004.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-004.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-rtl-004.html) [flex-abspos-staticpos-align-self-safe-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-safe-001.html) [flex-abspos-staticpos-align-self-vertWM-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-001.html) [flex-abspos-staticpos-align-self-vertWM-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-002.html) [flex-abspos-staticpos-align-self-vertWM-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-003.html) [flex-abspos-staticpos-align-self-vertWM-004.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-004.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-align-self-vertWM-004.html) [flex-abspos-staticpos-fallback-justify-content-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-fallback-justify-content-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-fallback-justify-content-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-fallback-justify-content-001.html) [flex-abspos-staticpos-justify-content-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-001.html) [flex-abspos-staticpos-justify-content-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-002.html) [flex-abspos-staticpos-justify-content-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-003.html) [flex-abspos-staticpos-justify-content-004.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-004.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-004.html) [flex-abspos-staticpos-justify-content-005.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-005.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-005.html) [flex-abspos-staticpos-justify-content-006.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-006.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-006.html) [flex-abspos-staticpos-justify-content-007.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-007.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-007.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-007.html) [flex-abspos-staticpos-justify-content-008.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-008.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-008.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-008.html) [flex-abspos-staticpos-justify-content-rtl-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-001.html) [flex-abspos-staticpos-justify-content-rtl-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-rtl-002.html) [flex-abspos-staticpos-justify-content-vertWM-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-001.html) [flex-abspos-staticpos-justify-content-vertWM-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-content-vertWM-002.html) [flex-abspos-staticpos-justify-self-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-justify-self-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-justify-self-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-justify-self-001.html) [flex-abspos-staticpos-margin-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-margin-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-margin-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-margin-001.html) [flex-abspos-staticpos-margin-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-margin-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-margin-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-margin-002.html) [flex-abspos-staticpos-margin-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/flex-abspos-staticpos-margin-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flex-abspos-staticpos-margin-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flex-abspos-staticpos-margin-003.html) [flexbox_absolute-atomic.html](https://wpt.fyi/results/css/css-flexbox/abspos/flexbox_absolute-atomic.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flexbox_absolute-atomic.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flexbox_absolute-atomic.html) [flexbox-abspos-child-001a.html](https://wpt.fyi/results/css/css-flexbox/abspos/flexbox-abspos-child-001a.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flexbox-abspos-child-001a.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flexbox-abspos-child-001a.html) [flexbox-abspos-child-001b.html](https://wpt.fyi/results/css/css-flexbox/abspos/flexbox-abspos-child-001b.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flexbox-abspos-child-001b.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flexbox-abspos-child-001b.html) [flexbox-abspos-child-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/flexbox-abspos-child-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flexbox-abspos-child-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flexbox-abspos-child-002.html) [flexbox_inline-abspos.html](https://wpt.fyi/results/css/css-flexbox/abspos/flexbox_inline-abspos.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/flexbox_inline-abspos.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/flexbox_inline-abspos.html) [position-absolute-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-001.html) [position-absolute-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-002.html) [position-absolute-003.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-003.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-003.html) [position-absolute-004.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-004.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-004.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-004.html) [position-absolute-005.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-005.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-005.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-005.html) [position-absolute-006.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-006.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-006.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-006.html) [position-absolute-007.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-007.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-007.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-007.html) [position-absolute-008.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-008.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-008.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-008.html) [position-absolute-009.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-009.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-009.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-009.html) [position-absolute-010.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-010.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-010.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-010.html) [position-absolute-011.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-011.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-011.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-011.html) [position-absolute-012.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-012.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-012.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-012.html) [position-absolute-013.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-013.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-013.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-013.html) [position-absolute-014.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-014.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-014.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-014.html) [position-absolute-015.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-015.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-015.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-015.html) [position-absolute-containing-block-001.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-containing-block-001.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-containing-block-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-containing-block-001.html) [position-absolute-containing-block-002.html](https://wpt.fyi/results/css/css-flexbox/abspos/position-absolute-containing-block-002.html) [(live test)](http://wpt.live/css/css-flexbox/abspos/position-absolute-containing-block-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/abspos/position-absolute-containing-block-002.html) [flex-content-alignment-with-abspos-001.html](https://wpt.fyi/results/css/css-flexbox/alignment/flex-content-alignment-with-abspos-001.html) [(live test)](http://wpt.live/css/css-flexbox/alignment/flex-content-alignment-with-abspos-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/alignment/flex-content-alignment-with-abspos-001.html) [dynamic-grid-flex-abspos.html](https://wpt.fyi/results/css/css-flexbox/dynamic-grid-flex-abspos.html) [(live test)](http://wpt.live/css/css-flexbox/dynamic-grid-flex-abspos.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/dynamic-grid-flex-abspos.html) [flexbox_stf-abspos.html](https://wpt.fyi/results/css/css-flexbox/flexbox_stf-abspos.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_stf-abspos.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_stf-abspos.html) [flex-item-position-relative-001.html](https://wpt.fyi/results/css/css-flexbox/flex-item-position-relative-001.html) [(live test)](http://wpt.live/css/css-flexbox/flex-item-position-relative-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-item-position-relative-001.html) The effect of this is that if you set, for example, align-self: center; on an absolutely-positioned child of a flex container , auto offsets on the child will center it in the flex container’s cross axis . ### 4.2. Flex Item Margins and Paddings The margins of adjacent flex items do not [collapse](https://www.w3.org/TR/CSS2/box.html#collapsing-margins). Percentage margins and paddings on flex items, like those on [block boxes](https://www.w3.org/TR/css-display-4/#block-box), are resolved against the [inline size](https://www.w3.org/TR/css-writing-modes-4/#inline-size) of their [containing block](https://www.w3.org/TR/css-display-4/#containing-block), e.g. left/right/top/bottom percentages all resolve against their containing block’s *width* in horizontal [writing modes](https://www.w3.org/TR/css-writing-modes-4/#writing-mode). Auto margins expand to absorb extra space in the corresponding dimension. They can be used for alignment, or to push adjacent flex items apart. See Aligning with auto margins. Tests [empty-flex-box-and-margin-collapsing.html](https://wpt.fyi/results/css/css-flexbox/empty-flex-box-and-margin-collapsing.html) [(live test)](http://wpt.live/css/css-flexbox/empty-flex-box-and-margin-collapsing.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/empty-flex-box-and-margin-collapsing.html) [flex-container-margin.html](https://wpt.fyi/results/css/css-flexbox/flex-container-margin.html) [(live test)](http://wpt.live/css/css-flexbox/flex-container-margin.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-container-margin.html) [flexitem-no-margin-collapsing.html](https://wpt.fyi/results/css/css-flexbox/flexitem-no-margin-collapsing.html) [(live test)](http://wpt.live/css/css-flexbox/flexitem-no-margin-collapsing.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexitem-no-margin-collapsing.html) [flex-margin-no-collapse.html](https://wpt.fyi/results/css/css-flexbox/flex-margin-no-collapse.html) [(live test)](http://wpt.live/css/css-flexbox/flex-margin-no-collapse.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-margin-no-collapse.html) [negative-margins-001.html](https://wpt.fyi/results/css/css-flexbox/negative-margins-001.html) [(live test)](http://wpt.live/css/css-flexbox/negative-margins-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/negative-margins-001.html) ### 4.3. Flex Item Z-Ordering Flex items paint exactly the same as inline blocks [CSS2], except that [order](https://www.w3.org/TR/css-flexbox-1/#propdef-order)-modified document order is used in place of raw document order, and [z-index](https://www.w3.org/TR/CSS2/visuren.html#propdef-z-index) values other than [auto](https://drafts.csswg.org/css2/#valdef-z-index-auto) create a stacking context even if [position](https://www.w3.org/TR/css-position-3/#propdef-position) is [static](https://www.w3.org/TR/css-position-3/#valdef-position-static) (behaving exactly as if position were [relative](https://www.w3.org/TR/css-position-3/#valdef-position-relative)). Note: Descendants that are positioned outside a flex item still participate in any stacking context established by the flex item. Tests [flexbox-paint-ordering-001.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-paint-ordering-001.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-paint-ordering-001.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-paint-ordering-001.xhtml) [flexbox-paint-ordering-002.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-paint-ordering-002.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-paint-ordering-002.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-paint-ordering-002.xhtml) [flexbox-paint-ordering-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-paint-ordering-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-paint-ordering-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-paint-ordering-003.html) [flex-item-z-ordering-001.html](https://wpt.fyi/results/css/css-flexbox/flex-item-z-ordering-001.html) [(live test)](http://wpt.live/css/css-flexbox/flex-item-z-ordering-001.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-item-z-ordering-001.html) [flex-item-z-ordering-002.html](https://wpt.fyi/results/css/css-flexbox/flex-item-z-ordering-002.html) [(live test)](http://wpt.live/css/css-flexbox/flex-item-z-ordering-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flex-item-z-ordering-002.html) [flexbox-items-as-stacking-contexts-001.xhtml](https://wpt.fyi/results/css/css-flexbox/flexbox-items-as-stacking-contexts-001.xhtml) [(live test)](http://wpt.live/css/css-flexbox/flexbox-items-as-stacking-contexts-001.xhtml) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-items-as-stacking-contexts-001.xhtml) [flexbox-items-as-stacking-contexts-002.html](https://wpt.fyi/results/css/css-flexbox/flexbox-items-as-stacking-contexts-002.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-items-as-stacking-contexts-002.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-items-as-stacking-contexts-002.html) [flexbox-items-as-stacking-contexts-003.html](https://wpt.fyi/results/css/css-flexbox/flexbox-items-as-stacking-contexts-003.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox-items-as-stacking-contexts-003.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox-items-as-stacking-contexts-003.html) [hittest-overlapping-margin.html](https://wpt.fyi/results/css/css-flexbox/hittest-overlapping-margin.html) [(live test)](http://wpt.live/css/css-flexbox/hittest-overlapping-margin.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/hittest-overlapping-margin.html) [hittest-overlapping-order.html](https://wpt.fyi/results/css/css-flexbox/hittest-overlapping-order.html) [(live test)](http://wpt.live/css/css-flexbox/hittest-overlapping-order.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/hittest-overlapping-order.html) [hittest-overlapping-relative.html](https://wpt.fyi/results/css/css-flexbox/hittest-overlapping-relative.html) [(live test)](http://wpt.live/css/css-flexbox/hittest-overlapping-relative.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/hittest-overlapping-relative.html) ### 4.4. Collapsed Items Specifying visibility:collapse on a flex item causes it to become a collapsed flex item, producing an effect similar to visibility:collapse on a table-row or table-column: the collapsed flex item is removed from rendering entirely, but leaves behind a "strut" that keeps the flex line’s cross-size stable. Thus, if a flex container has only one flex line, dynamically collapsing or uncollapsing items may change the flex container’s main size, but is guaranteed to have no effect on its cross size and won’t cause the rest of the page’s layout to "wobble". Flex line wrapping *is* re-done after collapsing, however, so the cross-size of a flex container with multiple lines might or might not change. Though collapsed flex items aren’t rendered, they do appear in the [formatting structure](https://www.w3.org/TR/CSS2/intro.html#formatting-structure). Therefore, unlike on display:none items [CSS2], effects that depend on a box appearing in the formatting structure (like incrementing counters or running animations and transitions) still operate on collapsed items. Tests [flexbox_visibility-collapse.html](https://wpt.fyi/results/css/css-flexbox/flexbox_visibility-collapse.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_visibility-collapse.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_visibility-collapse.html) [flexbox_visibility-collapse-line-wrapping.html](https://wpt.fyi/results/css/css-flexbox/flexbox_visibility-collapse-line-wrapping.html) [(live test)](http://wpt.live/css/css-flexbox/flexbox_visibility-collapse-line-wrapping.html) [(source)](https://github.com/web-platform-tests/wpt/blob/master/css/css-flexbox/flexbox_visibility-collapse-line-wrapping.html) In the following example, a sidebar is sized to fit its content. [visibility: collapse](https://www.w3.org/TR/css-display-4/#propdef-visibility) is used to dynamically hide parts of a navigation sidebar without affecting its width, even though the widest item (“Architecture”) is in a collapsed section. Sample live rendering for example code below Hover over the menu to the left: each section expands to show its sub-items. In order to keep the sidebar width (and this main area width) stable, [visibility: collapse](https://www.w3.org/TR/css-display-4/#propdef-visibility) is used instead of [display: none](https://www.w3.org/TR/css-display-4/#propdef-display) . This results in a sidebar that is always wide enough for the word “Architecture”, even though it is not always visible. ``` @media (min-width: 60em) { /* two column layout only when enough room (relative to default text size) */ div { display: flex; } #main { flex: 1; /* Main takes up all remaining space */ order: 1; /* Place it after (to the right of) the navigation */ min-width: 12em; /* Optimize main content area sizing */ } } /* menu items use flex layout so that visibility:collapse will work */ nav > ul > li { display: flex; flex-flow: column; } /* dynamically collapse submenus when not targeted */ nav > ul > li:not(:target):not(:hover) > ul { visibility: collapse; } ``` ```
Interesting Stuff to Read