Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

update css reference #4782

Merged
merged 1 commit into from
Jun 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/content/en/tools/lighthouse/audits/old-flexbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ project_path: /web/_project.yaml
book_path: /web/tools/_book.yaml
description: Reference documentation for the "Avoids Old CSS Flexbox" Lighthouse audit.

{# wf_updated_on: 2017-04-18 #}
{# wf_updated_on: 2017-06-28 #}
{# wf_published_on: 2016-12-05 #}

# Avoids Old CSS Flexbox {: .page-title }
Expand All @@ -13,6 +13,11 @@ The old, 2009 specification for Flexbox is deprecated and is 2.3x slower
than the latest specification. See [Flexbox Layout Isn't Slow][slow] to learn
more.

Caution: Consider ignoring this audit if a large portion of your users use
UCBrowser. See [googlechrome/lighthouse#1710][uc].

[uc]: https://github.com/GoogleChrome/lighthouse/issues/1710#issuecomment-294470505

[slow]: https://developers.google.com/web/updates/2013/10/Flexbox-layout-isn-t-slow

## How to pass the audit {: #how }
Expand All @@ -27,6 +32,18 @@ such as `box-flex`, is deprecated and should be replaced. See
[CSS Flexbox 2009/2011 Spec Syntax Property Mapping][map] to see exactly how the
old properties map to the new ones.

Lighthouse also flags vendor prefix values, such as `display: -ms-flexbox`.
Lighthouse flags these so that you know that you're sending more bytes in
your CSS than needed. If you're using Autoprefixer, you can prevent it
from printing out vendor prefixes by adding the following rule to your
`package.json` config:

"browserslist": [
"last 2 versions",
"not ie <= 10",
"not ie_mob <= 10"
]

[map]: https://wiki.csswg.org/spec/flexbox-2009-2011-spec-property-mapping

{% include "web/tools/lighthouse/audits/implementation-heading.html" %}
Expand Down