{"id":13395296,"url":"https://github.com/philipwalton/flexbugs","last_synced_at":"2025-09-29T02:32:39.345Z","repository":{"id":25278883,"uuid":"28704549","full_name":"philipwalton/flexbugs","owner":"philipwalton","description":"A community-curated list of flexbox issues and cross-browser workarounds for them.","archived":true,"fork":false,"pushed_at":"2024-01-19T22:00:42.000Z","size":164,"stargazers_count":13635,"open_issues_count":88,"forks_count":496,"subscribers_count":510,"default_branch":"master","last_synced_at":"2024-09-27T04:43:39.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philipwalton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-01-02T05:29:32.000Z","updated_at":"2024-09-25T05:19:10.000Z","dependencies_parsed_at":"2024-02-01T20:07:55.205Z","dependency_job_id":"29b33bc8-f053-41cb-897a-cc3c2507a197","html_url":"https://github.com/philipwalton/flexbugs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipwalton%2Fflexbugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipwalton%2Fflexbugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipwalton%2Fflexbugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philipwalton%2Fflexbugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philipwalton","download_url":"https://codeload.github.com/philipwalton/flexbugs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234583683,"owners_count":18856280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T17:01:49.746Z","updated_at":"2025-09-29T02:32:34.029Z","avatar_url":"https://github.com/philipwalton.png","language":null,"funding_links":[],"categories":["Others","miscellaneous","Layout","Design \u0026 UI/UX","Featured Projects"],"sub_categories":["Flexbox","[Sketching with CSS](http://www.sketchingwithcss.com) Flexbox Guide by [@sfioritto](https://github.com/sfioritto)"],"readme":":warning: _**UPDATE:** this repo is no longer maintained, as most of the bugs listed here are fixed in modern browsers._\n\nFlexbugs\n========\n\nThis repository is a community-curated list of flexbox issues and cross-browser workarounds for them. The goal is that if you're building a website using flexbox and something isn't working as you'd expect, you can find the solution here.\n\nAs the spec continues to evolve and vendors nail down their implementations, this repo will be updated with newly discovered issues and remove old issues as they're fixed or become obsolete. If you discover a bug that's not listed here, please [report it](#contributing) so everyone else can benefit.\n\n## The bugs and their workarounds\n\n1. [Minimum content sizing of flex items not honored](#flexbug-1)\n2. [Column flex items set to `align-items: center` overflow their container](#flexbug-2)\n3. [`min-height` on a flex container won't apply to its flex items](#flexbug-3)\n4. [`flex` shorthand declarations with unitless `flex-basis` values are ignored](#flexbug-4)\n5. [Column flex items don't always preserve intrinsic aspect ratios](#flexbug-5)\n6. [The default `flex` value has changed](#flexbug-6)\n7. [`flex-basis` doesn't account for `box-sizing: border-box`](#flexbug-7)\n8. [`flex-basis` doesn't support `calc()`](#flexbug-8)\n9. [Some HTML elements can't be flex containers](#flexbug-9)\n10. [`align-items: baseline` doesn't work with nested flex containers](#flexbug-10)\n11. [Min and max size declarations are ignored when wrapping flex items](#flexbug-11)\n12. [Inline elements are not treated as flex-items](#flexbug-12)\n13. [Importance is ignored on flex-basis when using flex shorthand](#flexbug-13)\n14. [Shrink-to-fit containers with `flex-flow: column wrap` do not contain their items](#flexbug-14)\n15. [Column flex items ignore `margin: auto` on the cross axis](#flexbug-15)\n16. [`flex-basis` cannot be animated](#flexbug-16)\n17. [Flex items are not correctly justified when `max-width` is used](#flexbug-17)\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"1-minimum-content-sizing-of-flex-items-not-honored\"\u003e\u003ca\u003e\n\n### Flexbug #1\n\n_Minimum content sizing of flex items not honored_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/1.1.a-bug.html\"\u003e1.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/1.1.b-workaround.html\"\u003e1.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/1.2.a-bug.html\"\u003e1.2.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/1.2.b-workaround.html\"\u003e1.2.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Chrome (fixed in 72)\u003cbr\u003e\n      Opera (fixed in 60)\u003cbr\u003e\n      Safari (fixed in 10)\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=426898\"\u003eChrome #426898 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=596743\"\u003eChrome #596743 (fixed)\u003c/a\u003e\u003c/br\u003e\n      \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=146020\"\u003eSafari #146020 (fixed)\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nWhen flex items are too big to fit inside their container, those items are instructed (by the flex layout algorithm) to shrink, proportionally, according to their `flex-shrink` property. But contrary to what most browsers allow, they're *not* supposed to shrink indefinitely. They must always be at least as big as their minimum height or width properties declare, and if no minimum height or width properties are set, their minimum size should be the default minimum size of their content.\n\nAccording to the [current flexbox specification](http://www.w3.org/TR/css-flexbox/#flex-common):\n\n\u003e By default, flex items won’t shrink below their minimum content size (the length of the longest word or fixed-size element). To change this, set the min-width or min-height property.\n\n#### Workaround\n\nThe flexbox spec defines an initial `flex-shrink` value of `1` but says items should not shrink below their default minimum content size. You can usually get this same behavior by setting a `flex-shrink` value of `0` (instead of the default `1`) and a `flex-basis` value of `auto`. That will cause the flex item to be at least as big as its width or height (if declared) or its default content size.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"2-column-flex-items-set-to-align-itemscenter-overflow-their-container\"\u003e\u003ca\u003e\n\n### Flexbug #2\n\n_Column flex items set to `align-items: center` overflow their container_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/2.1.a-bug.html\"\u003e2.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/2.1.b-workaround.html\"\u003e2.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Internet Explorer 10-11 (fixed in Edge)\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nWhen using `align-items: center` on a flex container in the column direction, the contents of flex item, if too big, will overflow their container in IE 10-11.\n\n#### Workaround\n\nMost of the time, this can be fixed by simply setting `max-width: 100%` on the flex item. If the flex item has a padding or border set, you'll also need to make sure to use `box-sizing: border-box` to account for that space. If the flex item has a margin, using `box-sizing` alone will not work, so you may need to use a container element with padding instead.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"3-min-height-on-a-flex-container-wont-apply-to-its-flex-items\"\u003e\u003ca\u003e\n\n### Flexbug #3\n\n_`min-height` on a flex container won't apply to its flex items_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/3.1.a-bug.html\"\u003e3.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/3.1.b-workaround.html\"\u003e3.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/3.2.a-bug.html\"\u003e3.2.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/3.2.b-workaround.html\"\u003e3.2.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n    \u003ctd\u003e\u003ca href=\"http://web.archive.org/web/20170312223506/https://connect.microsoft.com/IE/feedback/details/802625/min-height-and-flexbox-flex-direction-column-dont-work-together-in-ie-10-11-preview\"\u003eIE #802625 (archived)\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIn order for flex items to size and position themselves, they need to know how big their containers are. For example, if a flex item is supposed to be vertically centered, it needs to know how tall its parent is. The same is true when flex items are told to grow to fill the remaining empty space.\n\nIn IE 10-11, `min-height` declarations on flex containers work to size the containers themselves, but their flex item children do not seem to know the size of their parents. They act as if no height has been set at all.\n\n#### Workaround\n\nBy far the most common element to apply `min-height` to is the body element, and usually you're setting it to `100%` (or `100vh`). Since the body element will never have any content below it, and since having a vertical scroll bar appear when there's a lot of content on the page is usually the desired behavior, substituting `height` for `min-height` will almost always work as shown in demo [3.1.b](https://philipwalton.github.io/flexbugs/3.1.b-workaround.html).\n\nFor cases where `min-height` is required, the workaround is to add a wrapper element around the flex container that is itself a flex container in the column direction. For some reason nested flex containers are not affected by this bug. Demo [3.2.a](https://philipwalton.github.io/flexbugs/3.2.a-bug.html) shows a visual design where `min-height` is required, and demo [3.2.b](https://philipwalton.github.io/flexbugs/3.2.b-workaround.html) shows how this bug can be avoided with a wrapper element.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored\"\u003e\u003ca\u003e\n\n### Flexbug #4\n\n_`flex` shorthand declarations with unitless `flex-basis` values are ignored_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/4.1.a-bug.html\"\u003e4.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/4.1.b-workaround.html\"\u003e4.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nPrior to the release of IE 10, the [flexbox spec at the time](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flexibility) stated that a flexbox item's preferred size required a unit when using the `flex` shorthand:\n\n\u003e  If the \u0026lt;preferred-size\u0026gt; is ‘0’, it must be specified with a unit (like ‘0px’) to avoid ambiguity; unitless zero will either be interpreted as as one of the flexibilities, or is a syntax error.\n\nThis is no longer true in the spec, but IE 10-11 still treat it as true. If you use the declaration `flex: 1 0 0` in one of these browsers, it will be an error and the entire rule (including all the flexibility properties) will be ignored.\n\n#### Workaround\n\nWhen using the `flex` shorthand, always include a unit in the `flex-basis` portion. For example: `1 0 0%`.\n\n**Important:** using a `flex` value of something like `1 0 0px` can still be a problem because many CSS minifiers will convert `0px` to `0`. To avoid this, make sure to use `0%` instead of `0px` since most minifiers won't touch percentage values for other reasons.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"5-column-flex-items-dont-always-preserve-intrinsic-aspect-ratios\"\u003e\u003ca\u003e\n\n### Flexbug #5\n\n_Column flex items don't always preserve intrinsic aspect ratios_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/5.1.a-bug.html\"\u003e5.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/5.1.b-workaround.html\"\u003e5.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nThe [March 2014 spec](http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#min-size-auto) has the following to say about how size determinations are made for flex items:\n\n\u003e On a flex item whose overflow is not visible, this [auto] keyword specifies as the minimum size the smaller of: (a) the min-content size, or (b) the computed width/height, if that value is definite.\n\nDemo [5.1.a](https://philipwalton.github.io/flexbugs/5.1.a-bug.html) contains an image whose height is 200 pixels and whose width is 500 pixels. Its container, however, is only 300 pixels wide, so after the image is scaled to fit into that space, its computed height should only be 120 pixels. The text quoted above does not make it clear as to whether the flex item's min-content size should be based the image's actual height or scaled height.\n\nThe [most recent spec](http://dev.w3.org/csswg/css-flexbox/#min-size-auto) has resolved this ambiguity in favor of using sizes that will preserve an element's intrinsic aspect ratio.\n\n#### Workaround\n\nYou can avoid this problem by adding a container element to house the element with the intrinsic aspect ratio. Since doing this causes the element with the intrinsic aspect ratio to no longer be a flex item, it will be sized normally.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"6-the-default-flex-value-has-changed\"\u003e\u003ca\u003e\n\n### Flexbug #6\n\n_The default `flex` value has changed_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/6.1.a-bug.html\"\u003e6.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/6.1.b-workaround.html\"\u003e6.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/6.2.a-bug.html\"\u003e6.2.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/6.2.b-workaround.html\"\u003e6.2.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10 (fixed in 11)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nWhen IE 10 was being developed, the [March 2012 spec](http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/#flexibility) said the initial value for the `flex` property was `none`, which translates to `0 0 auto`. The [most recent spec](http://www.w3.org/TR/css3-flexbox/#flex-property) sets the initial `flex` value to the initial values of the individual flexibility properties, which corresponds to `initial` or `0 1 auto`. Notice that this means IE 10 uses a different initial `flex-shrink` value (technically it was called `neg-flex` in the spec at the time) from every other browser. Other browsers (including IE 11) use an initial value of `1` rather than `0`.\n\nThis bug can manifest itself in two ways: when not setting any flex values or when using one of the `flex` shorthands. In both cases, flex items in IE 10 will behave differently from all other browsers. The following table illustrates the difference:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDeclaration\u003c/th\u003e\n    \u003cth align=\"left\"\u003eWhat it should mean\u003c/th\u003e\n    \u003cth align=\"left\"\u003eWhat it means in IE 10\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e(no flex declaration)\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 0 1 auto\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 0 0 auto\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 1\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 1 1 0%\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 1 0 0px\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: auto\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 1 1 auto\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 1 0 auto\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: initial\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 0 1 auto\u003c/code\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003ccode\u003eflex: 0 0 auto\u003c/code\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n#### Workaround\n\nIf you have to support IE 10, the best solution is to *always* set an explicit `flex-shrink` value on all of your flex items, or to always use the longhand form (rather than the shorthand) in `flex` declarations to avoid the gotchas shown in the table above. Demo [6.1.a](https://philipwalton.github.io/flexbugs/6.1.a-bug.html) shows how not setting any flexibility properties causes an error, and demo [6.2.a](https://philipwalton.github.io/flexbugs/6.2.a-bug.html) shows how using `flex: 1` can have the same problem.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"7-flex-basis-doesnt-account-for-box-sizingborder-box\"\u003e\u003ca\u003e\n\n### Flexbug #7\n\n_`flex-basis` doesn't account for `box-sizing: border-box`_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/7.1.a-bug.html\"\u003e7.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/7.1.b-workaround.html\"\u003e7.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/7.1.c-workaround.html\"\u003e7.1.c\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nAn explicit `flex-basis` value (i.e., any value other than `auto`) is supposed to act just like `width` or `height`. It determines the initial size of a flex item and then the other flexibility properties allow it to grow or shrink accordingly.\n\nIE 10-11 always assume a content box model when using `flex-basis` to determine a flex item's size, even if that item is set to `box-sizing: border-box`. Demo [7.1.a](https://philipwalton.github.io/flexbugs/7.1.a-bug.html) shows that an item with a `flex-basis` value of `100%` will overflow its container by the amount of its border plus its padding.\n\n#### Workaround\n\nThere are two ways to work around this bug. The first requires no additional markup, but the second is slightly more flexible:\n\n1. Instead of setting an explicit `flex-basis` value, use `auto`, and then set an explicit width or height. Demo [7.1.b](https://philipwalton.github.io/flexbugs/7.1.b-workaround.html) shows this.\n2. Use a wrapper element that contains no border or padding so it works with the content box model. Demo [7.1.c](https://philipwalton.github.io/flexbugs/7.1.c-workaround.html) show this.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"8-flex-basis-doesnt-support-calc\"\u003e\u003ca\u003e\n\n### Flexbug #8\n\n_`flex-basis` doesn't support `calc()`_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/8.1.a-bug.html\"\u003e8.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/8.1.b-workaround.html\"\u003e8.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/8.2.a-bug.html\"\u003e8.2.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/8.2.b-workaround.html\"\u003e8.2.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10 (fixed in 11)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIE 10-11 ignore `calc()` functions used in `flex` shorthand declarations. Demo [8.1.a](https://philipwalton.github.io/flexbugs/8.1.a-bug.html) shows `flex: 0 0 calc(100%/3)` not working in IE.\n\nIn IE 10, `calc()` functions don't even work in longhand `flex-basis` declarations (though this does work in IE 11). Demo [8.2.a](https://philipwalton.github.io/flexbugs/8.2.a-bug.html) shows `flex-basis: calc(100%/3)` not working in IE 10.\n\n#### Workaround\n\nSince this bug only affects the `flex` shorthand declaration in IE 11, an easy workaround (if you only need to support IE 11) is to always specify each flexibility property individually. Demo [8.1.b](https://philipwalton.github.io/flexbugs/8.1.b-workaround.html) offers an example of this.\n\nIf you need to support IE 10 as well, then you'll need to fall back to setting `width` or `height` (depending on the container's `flex-direction` property). You can do this by setting a `flex-basis` value of `auto`, which will instruct the browser to use the element's [main size](http://dev.w3.org/csswg/css-flexbox/#box-model) property (i.e., its `width` or `height`). Demo [8.2.b](https://philipwalton.github.io/flexbugs/8.2.b-workaround.html) offers an example of this.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"9-some-html-elements-cant-be-flex-containers\"\u003e\u003ca\u003e\n\n### Flexbug #9\n\n_Some HTML elements can't be flex containers_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/9.1.a-bug.html\"\u003e9.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/9.1.b-workaround.html\"\u003e9.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/9.2.a-bug.html\"\u003e9.2.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/9.2.b-workaround.html\"\u003e9.2.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/9.3.a-bug.html\"\u003e9.3.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Chrome\u003cbr\u003e\n      Edge\u003cbr\u003e\n      Firefox (fixed in 63)\u003cbr\u003e\n      Opera\u003cbr\u003e\n      Safari (fixed in 11)\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=375693\"\u003eChrome #375693 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=700029\"\u003eChrome #700029 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4511145/\"\u003eEdge #4511145 (obsolete)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=984869\"\u003eFirefox #984869 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1230207\"\u003eFirefox #1230207 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1397768\"\u003eFirefox #1397768 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=169082\"\u003eSafari #169082 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=169700\"\u003eSafari #169700 (fixed)\u003c/a\u003e\u003cbr\u003e\n      \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=190065\"\u003eSafari #190065 (fixed)\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nCertain HTML elements, like `\u003csummary\u003e`, `\u003cfieldset\u003e` and `\u003cbutton\u003e`, do not work as flex containers. The browser's default rendering of those element's UI conflicts with the `display: flex` declaration.\n\nDemo [9.1.a](https://philipwalton.github.io/flexbugs/9.1.a-bug.html) shows how `\u003cbutton\u003e` elements didn't work in Firefox, and demo [9.2.a](https://philipwalton.github.io/flexbugs/9.2.a-bug.html) shows that `\u003cfieldset\u003e` elements don't work in most browsers. Demo [9.3.a](https://philipwalton.github.io/flexbugs/9.3.a-bug.html) shows that `\u003csummary\u003e` elements dont work in Safari.\n\n#### Workaround\n\nThe simple solution to this problem is to use a wrapper element that can be a flex container (like a `\u003cdiv\u003e`) directly inside of the element that can't. Demos [9.1.b](https://philipwalton.github.io/flexbugs/9.1.b-workaround.html) and [9.2.b](https://philipwalton.github.io/flexbugs/9.2.b-workaround.html) show workaround for the `\u003cbutton\u003e` and `\u003cfieldset\u003e` elements, respectively.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"10-align-items-baseline-doesnt-work-with-nested-flex-containers\"\u003e\u003ca\u003e\n\n### Flexbug #10\n\n_`align-items: baseline` doesn't work with nested flex containers_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/10.1.a-bug.html\"\u003e10.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/10.1.b-workaround.html\"\u003e10.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Firefox (fixed in 52)\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1146442\"\u003eFirefox #1146442 (fixed)\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIn Firefox, nested flex containers don't contribute to the baseline that other flex items should align themselves to. Demo [10.1.a](https://philipwalton.github.io/flexbugs/10.1.a-bug.html) shows the line on the left incorrectly aligning itself to the second line of text on the right. It should be aligned to the first line of text, which is the inner flex container.\n\n#### Workaround\n\nThis bug only affects nested containers set to `display: flex`. If you set the nested container to `display: inline-flex` it works as expected. Note that when using `inline-flex` you will probably also need to set the width to `100%`.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"11-min-and-max-size-declarations-are-ignored-when-wrapping-flex-items\"\u003e\u003ca\u003e\n\n### Flexbug #11\n\n_Min and max size declarations are ignored when wrapping flex items_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/11.1.a-bug.html\"\u003e11.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/11.1.b-workaround.html\"\u003e11.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eSafari (fixed in 10.1)\u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=136041\"\u003eSafari #136041 (fixed)\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nSafari uses min/max width/height declarations for actually rendering the size of flex items, but it ignores those values when calculating how many items should be on a single line of a multi-line flex container. Instead, it simply uses the item's `flex-basis` value, or its width if the flex basis is set to `auto`.\n\nThis is problematic when using the `flex: 1` shorthand because that sets the flex basis to `0%`, and an infinite number of flex items could fit on a single line if the browser thinks their widths are all zero. Demo [11.1.a](https://philipwalton.github.io/flexbugs/11.1.a-bug.html) show an example of this happening.\n\nThis is also problematic when creating fluid layouts where you want your flex items to be no bigger than X but no smaller than Y. Since Safari ignores those values when determining how many items fit on a line, that strategy won't work.\n\n#### Workaround\n\nThe only way to avoid this issue is to make sure to set the flex basis to a value that is always going to be between (inclusively) the min and max size declarations. If using either a min or a max size declaration, set the flex basis to whatever that value is, if you're using both a min *and* a max size declaration, set the flex basis to a value that is somewhere in that range. This sometimes requires using percentage values or media queries to cover all possible scenarios. Demo [11.1.b](https://philipwalton.github.io/flexbugs/11.1.b-workaround.html) shows an example of setting the flex basis to the same value as the min width to workaround this bug in Safari.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"12-inline-elements-are-not-treated-as-flex-items\"\u003e\u003ca\u003e\n\n### Flexbug #12\n\n_Inline elements are not treated as flex-items_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/12.1.a-bug.html\"\u003e12.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/12.1.b-workaround.html\"\u003e12.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10-11 (fixed in Edge)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nInline elements, including `::before` and `::after` pseudo-elements, are not treated as flex items in IE 10. IE 11 fixed this bug with regular inline element, but it still affects the `::before` and `::after` pseudo-elements.\n\n#### Workaround\n\nThis issue can be avoided by adding a non-inline display value to the items, e.g. `block`, `inline-block`, `flex`, etc. Demo [12.1.b](https://philipwalton.github.io/flexbugs/12.1.b-workaround.html) shows an example of this working in IE 10-11.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"13-importance-is-ignored-on-flex-basis-when-using-flex-shorthand\"\u003e\u003ca\u003e\n\n### Flexbug #13\n\n_Importance is ignored on flex-basis when using flex shorthand_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/13.1.a-bug.html\"\u003e13.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/13.1.b-workaround.html\"\u003e13.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInternet Explorer 10 (fixed in 11)\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nWhen applying `!important` to a `flex` shorthand declaration, IE 10 applies `!important` to the `flex-grow` and `flex-shrink` parts but not to the `flex-basis` part. Demo [13.1.a](https://philipwalton.github.io/flexbugs/13.1.a-bug.html) shows an example of a declaration with `!important` not overriding another declaration in IE 10.\n\n#### Workaround\n\nIf you need the `flex-basis` part of your `flex` declaration to be `!important` and you have to support IE 10, make sure to include a `flex-basis` declaration separately. Demo [13.1.b](https://philipwalton.github.io/flexbugs/13.1.b-workaround.html) shows an example of this working in IE 10.\n\n\n\u003c!-- To preserve old links --\u003e\n\u003ca name=\"14-flex-containers-with-wrapping-the-container-is-not-sized-to-contain-its-items\"\u003e\u003ca\u003e\n\n### Flexbug #14\n\n_Shrink-to-fit containers with `flex-flow: column wrap` do not contain their items_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking Bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/14.1.a-bug.html\"\u003e14.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/14.1.b-workaround.html\"\u003e14.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/14.1.c-workaround.html\"\u003e14.1.c\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Chrome (fixed in 118)\u003cbr\u003e\n        Firefox\u003cbr\u003e\n        Safari\u003cbr\u003e\n        Opera\u003cbr\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003ca href=\"https://bugs.chromium.org/p/chromium/issues/detail?id=507397\"\u003eChrome #507397 (fixed)\u003c/a\u003e\u003cbr\u003e\n        \u003ca href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=995020\"\u003eFirefox #995020\u003c/a\u003e\u003cbr\u003e\n        \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=157648\"\u003eSafari #157648\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIf you float a flex container, use `inline-flex`, or absolutely position it, the size of the container becomes determined by its content (a.k.a shrink-to-fit).\n\nWhen using `flex-flow: column wrap`, some browsers do not properly size the container based on its content, and there is unwanted overflow. Demo [14.1.a](https://philipwalton.github.io/flexbugs/14.1.a-bug.html) shows an example of this.\n\n#### Workaround\n\nIf your container has a fixed height (usually the case when you enable wrapping), you avoid this bug by using `flex-flow: row wrap` (note `row` instead of `column`) and fake the column behavior by updating the container's [writing mode](https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode) (and reseting it on the items). Demo [14.1.b](https://philipwalton.github.io/flexbugs/14.1.b-workaround.html) shows an example of this working in all modern browsers.\n\n**Note:** To use this workaround in Safari 10 you may need to set explicit dimensions on the flex items. Demo [14.1.c](https://philipwalton.github.io/flexbugs/14.1.c-workaround.html) shows an example of how this can be needed in Safari 10.\n\n\n### Flexbug #15\n\n_Column flex items ignore `margin: auto` on the cross axis_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking Bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/15.1.a-bug.html\"\u003e15.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/15.1.b-workaround.html\"\u003e15.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Internet Explorer 10-11 (fixed in Edge)\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003ca href=\"https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14593426/\"\u003eIE #14593426\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n`margin: auto` can be used to fill all the available space between flex items (and is useful for centering), but in IE 10-11 this doesn't work in the cross axis for flex items within a column container.\n\nInstead of filling the available space, items render according to their `align-self` property, which defaults to `stretch`. Demo [15.1.a](https://philipwalton.github.io/flexbugs/15.1.a-bug.html) shows an example of this.\n\n#### Workaround\n\nIf you're using `margin: auto` to center items, you can achieve the same effect by setting `align-self: center` on each item with `margin: auto` (or `align-items: center` on the container). Demo [15.1.b](https://philipwalton.github.io/flexbugs/15.1.b-workaround.html) shows this working in IE 10-11.\n\n\n### Flexbug #16\n\n_`flex-basis` cannot be animated_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n    \u003cth align=\"left\"\u003eTracking Bugs\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/16.1.a-bug.html\"\u003e16.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/16.1.b-workaround.html\"\u003e16.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Internet Explorer 10-11\u003cbr\u003e\n        Safari\n    \u003c/td\u003e\n    \u003ctd\u003e\n        \u003ca href=\"https://bugs.webkit.org/show_bug.cgi?id=180435\"\u003eSafari #180435 (fixed)\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIn some browsers, CSS animations involving the `flex-basis` property are ignored. Demo [16.1.a](https://philipwalton.github.io/flexbugs/16.1.a-bug.html) shows an example of this.\n\n#### Workaround\n\nSince the `flex-basis` property is effectively just a substitute for the container's size property along the main axis (`width` for rows and `height` for columns), you can achieve the effect of animating `flex-basis` by using a `flex-basis` value of `auto` and instead animating either the `width` or `height` instead. Demo [16.1.b](https://philipwalton.github.io/flexbugs/16.1.b-workaround.html) shows how you can achieve the same effect from demo [16.1.a](https://philipwalton.github.io/flexbugs/16.1.a-bug.html) by animating `width` instead of `flex-basis`.\n\n\n### Flexbug #17\n\n_Flex items are not correctly justified when `max-width` is used_\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth align=\"left\"\u003eDemos\u003c/th\u003e\n    \u003cth align=\"left\"\u003eBrowsers affected\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr valign=\"top\"\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/17.1.a-bug.html\"\u003e17.1.a\u003c/a\u003e \u0026ndash; \u003cem\u003ebug\u003c/em\u003e\u003cbr\u003e\n      \u003ca href=\"https://philipwalton.github.io/flexbugs/17.1.b-workaround.html\"\u003e17.1.b\u003c/a\u003e \u0026ndash; \u003cem\u003eworkaround\u003c/em\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n        Internet Explorer 11\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\nIn IE 11 the free space between or around flex items (as per their container's `justify-content` property) is not correctly calculated if a max-size property is used (`max-width` in the row direction, `max-height` in the column direction). Demo [17.1.a](https://philipwalton.github.io/flexbugs/17.1.a-bug.html) shows an example of this.\n\n#### Workaround\n\nIn most cases where a max-size property is used on a flex item, the desired result is to have that item's initial size start at the value of the `flex-basis` property and grow to no larger than its max-size value.\n\nIn such cases, the same effect can be achieved by initially specifying the desired max-size as the item's `flex-basis` and then letting it shrink by setting the min-size property (`min-width` in the row direction, `min-height` in the column direction) to whatever `flex-basis` was previously set to.\n\nIn other words, the following two declarations will both render an item with a final size between `0%` and `25%` depending on the available free space:\n\n```css\n.using-a-grow-strategy {\n  flex: 1 0 0%;\n  max-width: 25%;\n}\n\n.using-a-shrink-strategy {\n  flex: 0 1 25%;\n  min-width: 0%;\n}\n```\n\nDemo [17.1.b](https://philipwalton.github.io/flexbugs/17.1.b-workaround.html) shows this working in IE 11.\n\n\n## Acknowledgments\n\nFlexbugs was created as a follow-up to the article [Normalizing Cross-Browser Flexbox Bugs](http://philipwalton.com/articles/normalizing-cross-browser-flexbox-bugs/). It is maintained by [@philwalton](https://twitter.com/philwalton), [@gregwhitworth](https://twitter.com/gregwhitworth) and [@akaustav](https://twitter.com/akaustav). If you have any questions or would like to get involved, please feel free to reach out to one of us on Twitter.\n\n## Contributing\n\nIf you've discovered a flexbox bug and would like to submit a workaround for it, please open an issue or submit a pull request. Make sure to submit relevant test cases or screenshots and indicate which browsers are affected.\n\nPlease only submit bugs if they have a viable workaround and the workaround applies to most use cases. If you do not know of a workaround, but you're reasonably confident one exists, please indicate that in the issue and the community can help investigate.\n\n**Note: Do not submit bugs here in lieu of reporting them to browser vendors. [Reporting bugs to browser vendors](https://www.smashingmagazine.com/2011/09/help-the-community-report-browser-bugs/) is the best and fastest way to get bugs fixed.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipwalton%2Fflexbugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilipwalton%2Fflexbugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilipwalton%2Fflexbugs/lists"}