Skip to content

Commit 6664560

Browse files
committed
spec/css3-regions/regions-use-cases: [Flowing content into arbitrary areas]
1 parent 043672c commit 6664560

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

spec/css3-regions/regions-use-cases.txt

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -339,50 +339,6 @@ This works only if the class="segment" elements have no direct content, because
339339
<div id="region2" class="region"></div>
340340
<div id="region3" class="region"></div>
341341
</code>
342-
==== Flowing content into arbitrary areas ====
343-
344-
The following image illustrates flowing content into an arbitrarily shaped area (e.g., a heart).
345-
346-
{{:spec:css3-regions:simple_shape.png?600|}}
347-
348-
<code css>
349-
/* extract the content of #source into a named flow - 'article' */
350-
#source {
351-
flow-into: article;
352-
}
353-
/* render the content from the 'article' named flow into .region */
354-
.region {
355-
flow-from: article;
356-
}
357-
#circle,
358-
#heart {
359-
position: absolute;
360-
width: 40%;
361-
height: 40%;
362-
}
363-
#circle {
364-
/* notation from CSS Exclusions and Shapes Module */
365-
shape-inside: circle(50%, 50%, 30%);
366-
left: 0;
367-
}
368-
#heart {
369-
shape-inside: polygon(x1, y1, x2, y2, x3, y3, ... xn, yn);
370-
right: 0;
371-
}
372-
/* region-styling to change the color of paragraph text that flows into #heart */
373-
@region #heart {
374-
p {
375-
color: red;
376-
}
377-
}
378-
</code>
379-
<code html>
380-
<div id="source">
381-
<p>Lorem ipsum dolor sit amet ...</p>
382-
</div>
383-
<div id="circle" class="region"></div>
384-
<div id="heart" class="region"></div>
385-
</code>
386342

387343
==== Flowing content *around* arbitrary areas ====
388344

0 commit comments

Comments
 (0)