From 596c48f73caeee067111ac6bf5eb4618ac529419 Mon Sep 17 00:00:00 2001
From: Kelsey Gilbert
If the value is true the page compositor will assume the drawing buffer contains
colors with premultiplied alpha. If the value is false the page compositor will
assume that colors in the drawing buffer are not premultiplied. This flag is ignored
- if the alpha flag is
- false. See Premultiplied Alpha for more
+ if the alpha flag is false.
+
+ With Context creation parameters
premultipliedAlpha:true
, any pixels sent to the page
+ compositor shall have color values less-than-or-equal-to their alpha value,
+ otherwise the colors resulting from compositing such out-of-range pixel values
+ are undefined.
+ premultipliedAlpha:true
+ vec4(1.0, 0.0, 0.0, 0.5)
might display as green
+ instead of red, possibly due to optimized packed compositing math overflows.
+ This is left undefined due to the intractible performance impact of requiring
+ consistent behavior.
+
+ See Premultiplied Alpha for more
information on the effects of the premultipliedAlpha
flag.
+