Skip to content

Commit fd7e726

Browse files
committed
[css-transforms-1] Editorial change. Code highlighting of snippets.
1 parent 8965c51 commit fd7e726

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-transforms-1/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,13 +314,13 @@ Note: The identical rendering can be obtained by nesting elements with the equiv
314314

315315
For elements whose layout is governed by the CSS box model, the transform property does not affect the flow of the content surrounding the transformed element. However, the extent of the overflow area takes into account transformed elements. This behavior is similar to what happens when elements are offset via relative positioning. Therefore, if the value of the 'overflow' property is ''overflow/scroll'' or ''overflow/auto'', scrollbars will appear as needed to see content that is transformed outside the visible area. Specifically, transforms can extend (but do not shrink) the size of the overflow area, which is computed as the union of the bounds of the elements before and after the application of transforms.
316316

317-
For elements whose layout is governed by the CSS box model, any value other than ''transform/none'' for the transform results in the creation of a stacking context. Implementations must paint the layer it creates, within its parent stacking context, at the same stacking order that would be used if it were a positioned element with ''z-index: 0''. If an element with a transform is positioned, the 'z-index' property applies as described in [[!CSS2]], except that ''z-index/auto'' is treated as ''0'' since a new stacking context is always created.
317+
For elements whose layout is governed by the CSS box model, any value other than ''transform/none'' for the 'transform' property results in the creation of a stacking context. Implementations must paint the layer it creates, within its parent stacking context, at the same stacking order that would be used if it were a positioned element with ''z-index: 0''. If an element with a transform is positioned, the 'z-index' property applies as described in [[!CSS2]], except that ''z-index/auto'' is treated as ''0'' since a new stacking context is always created.
318318

319-
For elements whose layout is governed by the CSS box model, any value other than ''transform/none'' for the transform also causes the element to establish a <dfn export>containing block for all descendants</dfn>. Its padding box will be used to layout for all of its absolute-position descendants, fixed-position descendants, and descendant fixed background attachments.
319+
For elements whose layout is governed by the CSS box model, any value other than ''transform/none'' for the 'transform' property also causes the element to establish a <dfn export>containing block for all descendants</dfn>. Its padding box will be used to layout for all of its absolute-position descendants, fixed-position descendants, and descendant fixed background attachments.
320320

321321
<div class="example">
322322
To demostrate the effect of [=containing block for all descendants=] on fixed-position descendants, the following code snippets should behave identically:
323-
<pre>
323+
<pre><code highlight=html>
324324
&lt;style>
325325
#container {
326326
width: 300px;
@@ -347,14 +347,14 @@ To demostrate the effect of [=containing block for all descendants=] on fixed-po
347347
&lt;div id="bloat">&lt;/div>
348348
&lt;div id="child" style="position:fixed;">&lt;/div>
349349
&lt;/div>
350-
</pre>
350+
</code></pre>
351351
versus
352-
<pre>
352+
<pre><code highlight=html>
353353
&lt;div id="container" style="position:relative; z-index:0; left:5px;">
354354
&lt;div id="bloat">&lt;/div>
355355
&lt;div id="child" style="position:absolute;">&lt;/div>
356356
&lt;/div>
357-
</pre>
357+
</code></pre>
358358
</div>
359359

360360
<a href="https://www.w3.org/TR/css3-background/#fixed0">Fixed backgrounds</a> on the root element are affected by any transform specified for that element. For all other elements that are effected by a transform (i.e. have a transform applied to them, or to any of their ancestor elements), a value of ''fixed'' for the 'background-attachment' property is treated as if it had a value of ''background-attachment/scroll''. The computed value of 'background-attachment' is not affected.

0 commit comments

Comments
 (0)