Skip to content

Commit f0f7d22

Browse files
chrishtrsvgeesus
authored andcommitted
Merge pull request w3c#385 from chrishtr/rootresolution
Apply resolution of compositing for the root element
1 parent 401a200 commit f0f7d22

1 file changed

Lines changed: 13 additions & 18 deletions

File tree

compositing-1/Overview.bs

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

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

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

726721
<a href="#simplealphacompositing">Simple alpha compositing</a> uses the <a href="#porterduffcompositingoperators_srcover">source-over</a> 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)