Skip to content

Add standard Flexbox properties (2013)#91

Merged
nzakas merged 4 commits intoCSSLint:masterfrom
Rob--W:flexbox-2013
Sep 23, 2013
Merged

Add standard Flexbox properties (2013)#91
nzakas merged 4 commits intoCSSLint:masterfrom
Rob--W:flexbox-2013

Conversation

@Rob--W
Copy link
Copy Markdown
Contributor

@Rob--W Rob--W commented Sep 21, 2013

Resolves #90

Recognizes most Flexbox implementations.

References:
- http://www.w3.org/TR/css3-flexbox/#property

I did not update the allowed values for min-width and min-height,
because this change was dropped from the Flexbox spec:
- http://dev.w3.org/csswg/css-flexbox/#changes
- http://lists.w3.org/Archives/Public/www-style/2013Mar/0137.html
Removed unprefixed box and inline-box from display

Replaced unprefixed box-* properties with moz and webkit prefixes.
References:
- http://msdn.microsoft.com/en-us/library/ie/hh673531(v=vs.85).aspx
- http://www.w3.org/TR/2012/WD-css3-flexbox-20120322/

"-ms-flex" is defined (see reference) as
   [ <positive-flex> <negative-flex> <preferred-size> ] | none
   ^ <number>      ^ <number>      ^ "<width> without inherit"
"<width> without inherit" expands to "<length> || <percentage> || auto",
so the final definition of "-ms-flex" is:
[[ <number> <number>? ] || [ <length> || <percentage> || auto ] ] | none

The other values are taken verbatim from the references.
nzakas added a commit that referenced this pull request Sep 23, 2013
Add standard Flexbox properties (2013)
@nzakas nzakas merged commit 7734add into CSSLint:master Sep 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Flexbox syntax?

2 participants