Muhammad Muazzam
Muhammad Muazzam

Reputation: 2800

auto is not a flex-flow value

Having the code:

.vc_tta-panels-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

But getting following error in W3C validation:

auto is not a flex-flow value : 1 1 auto

Upvotes: 2

Views: 215

Answers (1)

Oriol
Oriol

Reputation: 288260

flex: 1 1 auto is standard, as said by the spec:

flex: auto. Equivalent to flex: 1 1 auto. Sizes the item based on the width/height properties, but makes them fully flexible, so that they absorb any free space along the main axis.

You can just ignore the error, it's a bug of the validator. Alternatively, use the equivalent flex: auto, which is accepted as valid.

Upvotes: 4

Related Questions