Spec: https://www.w3.org/TR/filter-effects-1/#attr-valuedef-operator-lighter Lighter is defined in the compositing & blending spec as equivalent to porter-duff plus, https://www.w3.org/TR/compositing-1/#porterduffcompositingoperators_plus. The 'lighter' composite mode already works in <canvas> (via globalCompositeOperation), and it's the same there. Chrome implemented support in https://bugs.chromium.org/p/chromium/issues/detail?id=439037 Per https://github.com/w3c/svgwg/issues/424 we should expose the new value in webidl and Chrome uses 7 too (https://codereview.chromium.org/779963002/patch/120001/130009) Differential Revision: https://phabricator.services.mozilla.com/D100605
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* The origin of this IDL file is
|
|
* http://www.w3.org/TR/SVG2/
|
|
*
|
|
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
* liability, trademark and document use rules apply.
|
|
*/
|
|
|
|
[Exposed=Window]
|
|
interface SVGFECompositeElement : SVGElement {
|
|
|
|
// Composite Operators
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_OVER = 1;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_IN = 2;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_OUT = 3;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_XOR = 5;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
|
|
const unsigned short SVG_FECOMPOSITE_OPERATOR_LIGHTER = 7;
|
|
|
|
[Constant]
|
|
readonly attribute SVGAnimatedString in1;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedString in2;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedEnumeration operator;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedNumber k1;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedNumber k2;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedNumber k3;
|
|
[Constant]
|
|
readonly attribute SVGAnimatedNumber k4;
|
|
};
|
|
|
|
SVGFECompositeElement includes SVGFilterPrimitiveStandardAttributes;
|