Skip to content

Commit f4a669d

Browse files
committed
[css-layout-api] Add example on how to use layout() function.
1 parent 3014e94 commit f4a669d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-layout-api/Overview.bs

+12
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,18 @@ The 'overflow' property applies to <a>layout API containers</a>. This is discuss
142142
As the layout is entirely up to the author, properties which are used in other layout modes (e.g.
143143
flex, block) may not apply. For example an author may not respect the 'margin' property on children.
144144

145+
<div class="example">
146+
The HTML below shows an example of setting the ''display'' to a ''layout()'' function.
147+
148+
<pre class="lang-html">
149+
&lt;!DOCTYPE html>
150+
&lt;style>
151+
.centering-layout { display: layout(centering); }
152+
&lt;/style>
153+
&lt;div class="centering-layout">&lt;/div>
154+
</pre>
155+
</div>
156+
145157
Layout API Container Painting {#painting}
146158
-----------------------------------------
147159

0 commit comments

Comments
 (0)