This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

wrap-flow

Summary

Specifies how exclusions affect inline content within block-level elements. Elements lay out their inline content in their content area but wrap around exclusion areas.

Overview table

Initial value
auto
Applies to
Block-level elements
Inherited
No
Media
visual
Computed value
As specified except for elements whose float computed value is not "none", in which case the computed value is "auto".
Animatable
No

CSS Object Model Property
:

Percentages
N/A

Syntax

  • wrap-flow: auto
  • wrap-flow: both
  • wrap-flow: clear
  • wrap-flow: end
  • wrap-flow: maximum
  • wrap-flow: minimum
  • wrap-flow: start

Values

auto
No exclusion is created. Inline flow content interacts with the element as usual.

wrap-flow:auto applied to grid positioned elements;

both
Inline flow content can flow on all sides of the exclusion.

wrap-flow:both applied to grid positioned elements;

start
Inline flow content can flow around the start edge of the exclusion area but must leave the area next to the end edge of the exclusion empty.

wrap-flow:start applied to grid positioned elements;

end
Inline flow content can flow around the end edge of the exclusion area but must leave the area next to the start edge of the exclusion empty.

wrap-flow:end applied to grid positioned elements;

minimum
Inline flow content can flow around the edge of the exclusion with the smallest available space within the flow content’s containing block, and must leave the other edge of the exclusion empty.

wrap-flow:minimum applied to grid positioned elements;

maximum
Inline flow content can flow around the edge of the exclusion with the largest available space within the flow content’s containing block, and must leave the other edge of the exclusion empty.

wrap-flow:maximum applied to grid positioned elements;

clear
Inline flow content can only flow before and after the exclusion in the flow content’s block direction, and must leave the areas next to the start and end edges of the exclusion empty.

wrap-flow:clear applied to grid positioned elements;

Examples

/*
At the time of writing only available by default in IE10.
Can be enabled in Canary under "Enable experimental WebKit features".
*/

.flow-item {
  left: 5%;
  top: 5%;
  width: 200px;
  position: absolute;
}

.flow--maximum{
  wrap-flow: maximum;
}

.flow--clear{
  wrap-flow: clear;
}

View live example

Usage

 If the property's computed value is "auto", the element does not become an exclusion.

An exclusion affects the inline flow content descended from the exclusion’s containing block, and that of all descendant elements of the same containing block. All inline flow content inside the containing block of the exclusions is affected. To stop the effect of exclusions defined outside an element, the wrap-through property can be used.

Related specifications

CSS Exclusions Module Level 1
Editor’s Draft

See also

Other articles

wrap-through

Attributions

  • Microsoft Developer Network: Article