Skip to content

Commit 0fbe035

Browse files
chrishtrsvgeesus
authored andcommitted
Merge pull request #385 from chrishtr/rootresolution
Apply resolution of compositing for the root element
1 parent 7040aca commit 0fbe035

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

compositing-2/Overview.bs

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -709,25 +709,20 @@ If the 'knock-out' property is disabled, each element within the group is only c
709709
-->
710710
<h3 id="pagebackdrop">The Page Group</h3>
711711

712-
The top level group is the page group. All other elements and groups are composited into this group.
713-
The page group is an <a href="#isolatedgroups">isolated group</a>.
712+
The <a href="#isolatedgroups">isolated group</a for the root element is the
713+
page group. All other elements and groups are composited into this group.
714+
The background of the root element (if specified) is painted into the page
715+
group, and any filter, clip-path, mask and and opacity is then applied, before
716+
compositing into the <a href="#rootgroup">root group</a>.
717+
718+
<h3 id="rootgroup">The Root Group</h3>
719+
The root group is the final compositing output, and is is above the page
720+
group. Compositing of the page group into the root group is performed with the
721+
specified blend mode of the root element.
722+
723+
<p class="note">Browsers often use an infinite white, 100% opaque root group,
724+
for final compositing, but this is not required. One example is an iframe with a transparent background.
714725

715-
The page group is composited with a backdrop color of white with 100% opacity.<!--<br>
716-
The page group may be used as an element in another graphical composition.-->
717-
<!--
718-
<p>
719-
For example,
720-
this is an SVG file that contains a red object at 50% opacity. <br>
721-
The UA will composite the page group onto a white background with 100% opacity. <br>
722-
The results are as follows:
723-
<pre>
724-
co = RGB(255, 0, 0) * .5 + RGB(255, 255, 255) * 1 * (1 - .5)
725-
co = RGB(127, 0, 0) + RGB(127, 127, 127)
726-
co = RGB(255, 127, 127)
727-
</pre>
728-
which is the color value ultimately displayed by the UA.
729-
</p>
730-
-->
731726
<h2 id="advancedcompositing">Advanced compositing features</h2>
732727

733728
<a href="#simplealphacompositing">Simple alpha compositing</a> uses the [=source-over=] Porter Duff compositing operator. <!-- Additional compositing operators exist and may be specified with the <a href="#propdef-mix-composite">mix-composite property</a>.

0 commit comments

Comments
 (0)