mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +00:00
Bug 1468837 [wpt PR 9905] - Update css-masking IDL file, a=testonly
Automatic update from web-platform-testsAdd css-masking IDL file with test (#9905) -- wpt-commits: 82a7c8930aae4df57dbd7895b8d3038c095f0790 wpt-pr: 9905
This commit is contained in:
parent
550ae3f537
commit
7d02d0ed6b
@ -288099,6 +288099,11 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"interfaces/css-masking.idl": [
|
||||
[
|
||||
{}
|
||||
]
|
||||
],
|
||||
"interfaces/css-typed-om.idl": [
|
||||
[
|
||||
{}
|
||||
@ -318407,6 +318412,12 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-masking/idlharness.html": [
|
||||
[
|
||||
"/css/css-masking/idlharness.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-masking/parsing/clip-invalid.html": [
|
||||
[
|
||||
"/css/css-masking/parsing/clip-invalid.html",
|
||||
@ -519462,6 +519473,10 @@
|
||||
"8853e79d6e9c3d262ebb38c569e97932f3b27cd4",
|
||||
"support"
|
||||
],
|
||||
"css/css-masking/idlharness.html": [
|
||||
"527fb8b8884e00d898c047f092221af56211bbcd",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-masking/parsing/clip-invalid.html": [
|
||||
"81cd98170ea4abe216c0cf155aa493c58079bd53",
|
||||
"testharness"
|
||||
@ -588618,6 +588633,10 @@
|
||||
"ff2d83e9468c743993c9b4a1ecf3fab09684dc16",
|
||||
"support"
|
||||
],
|
||||
"interfaces/css-masking.idl": [
|
||||
"5f4ed3d8922e30ab3ddb714d185c6e6f794e5a29",
|
||||
"support"
|
||||
],
|
||||
"interfaces/css-typed-om.idl": [
|
||||
"36526913c07a04f9fd329a5650430db82407d766",
|
||||
"support"
|
||||
|
36
testing/web-platform/tests/css/css-masking/idlharness.html
Normal file
36
testing/web-platform/tests/css/css-masking/idlharness.html
Normal file
@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<title>css-masking IDL tests</title>
|
||||
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/WebIDLParser.js"></script>
|
||||
<script src="/resources/idlharness.js"></script>
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
promise_test(async () => {
|
||||
const idl_array = new IdlArray();
|
||||
const idl = await fetch("/interfaces/css-masking.idl").then(r => r.text());
|
||||
const dom = await fetch("/interfaces/dom.idl").then(r => r.text());
|
||||
idl_array.add_idls(idl);
|
||||
idl_array.add_untested_idls('interface SVGElement : Element {};');
|
||||
idl_array.add_untested_idls('interface SVGAnimatedEnumeration {};');
|
||||
idl_array.add_untested_idls('interface SVGAnimatedLength {};');
|
||||
idl_array.add_untested_idls('interface SVGAnimatedTransformList {};');
|
||||
idl_array.add_dependency_idls(dom); // Needed for Element
|
||||
idl_array.add_objects({
|
||||
SVGClipPathElement: [document.querySelector('#clip1')],
|
||||
SVGMaskElement: [document.querySelector('#mask1')],
|
||||
});
|
||||
idl_array.test();
|
||||
}, "Test IDL implementation of css-masking");
|
||||
</script>
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<clipPath id="clip1">
|
||||
<rect x="50" y="50" width="100" height="100" />
|
||||
</clipPath>
|
||||
<mask id="mask1" x="0" y="0" width="1" height="1" maskContentUnits="objectBoundingBox">
|
||||
<rect x="0" y="0" width="1" height="1" fill="white" />
|
||||
</mask>
|
||||
</svg>
|
18
testing/web-platform/tests/interfaces/css-masking.idl
Normal file
18
testing/web-platform/tests/interfaces/css-masking.idl
Normal file
@ -0,0 +1,18 @@
|
||||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Masking Module Level 1" spec.
|
||||
// See: https://drafts.fxtf.org/css-masking-1/
|
||||
|
||||
interface SVGClipPathElement : SVGElement {
|
||||
readonly attribute SVGAnimatedEnumeration clipPathUnits;
|
||||
readonly attribute SVGAnimatedTransformList transform;
|
||||
};
|
||||
|
||||
interface SVGMaskElement : SVGElement {
|
||||
readonly attribute SVGAnimatedEnumeration maskUnits;
|
||||
readonly attribute SVGAnimatedEnumeration maskContentUnits;
|
||||
readonly attribute SVGAnimatedLength x;
|
||||
readonly attribute SVGAnimatedLength y;
|
||||
readonly attribute SVGAnimatedLength width;
|
||||
readonly attribute SVGAnimatedLength height;
|
||||
};
|
Loading…
Reference in New Issue
Block a user