Skip to content

Commit fc42a11

Browse files
committed
Added an example.
1 parent ff10b89 commit fc42a11

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

css3-layout/Overview.src.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,9 +1788,6 @@ <h3 id=flow>Flowing content into slots: 'flow'</h3>
17881788
slot explicitly (by means of 'flow') are each other's siblings in the
17891789
slot.
17901790

1791-
<p>The content flowed into a slot does not inherit properties from the
1792-
slot.
1793-
17941791
<div class=example>
17951792
<p>For example, the style sheet
17961793

@@ -1820,6 +1817,29 @@ <h3 id=flow>Flowing content into slots: 'flow'</h3>
18201817
of the first DIV, because both are added to slot b independently.
18211818
</div>
18221819

1820+
<div class=example>
1821+
<p>Here is another example. In this document
1822+
<pre>
1823+
&lt;P STYLE="grid: 'a b'">
1824+
&lt;SPAN STYLE="flow: a">First text &lt;SPAN
1825+
STYLE="flow: a">Second text&lt;/SPAN> Third
1826+
text&lt;/SPAN>
1827+
&lt;SPAN STYLE="flow: b">Fourth text &lt;SPAN
1828+
STYLE="flow: auto">Fifth text&lt;/SPAN> Sixth
1829+
text&lt;/SPAN>
1830+
&lt;/P>
1831+
</pre>
1832+
<p>the second SPAN has a non-auto 'flow' and is thus taken out of its
1833+
parent's flow and added at the end of slot ''a''. As a result, slot
1834+
''a'' contains text in this order: “First text Third Text Second
1835+
text.” This is in contrast to the fourth SPAN, which has 'flow: auto'
1836+
and thus remains inside its parent's flow. Slot ''b'' has this text:
1837+
“Fourth text Fifth text Sixth text.”
1838+
</div>
1839+
1840+
<p>The content flowed into a slot does not inherit properties from the
1841+
slot.
1842+
18231843
<p class=note>Note that 'flow' applies to floating elements: they are
18241844
floated relative to their containing block, and if their 'flow'
18251845
property indicates a slot in a grid, that slot is their containing

0 commit comments

Comments
 (0)