mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1475768 [wpt PR 11979] - Update the css-regions IDL file, a=testonly
Automatic update from web-platform-testsAdd the css-regions IDL file + test (#11979) -- wpt-commits: 6490348359f76467ccfc05155c8d65fbf1db16c2 wpt-pr: 11979
This commit is contained in:
parent
d5c65abe96
commit
3ab982d793
@ -287883,6 +287883,11 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"interfaces/css-regions.idl": [
|
||||
[
|
||||
{}
|
||||
]
|
||||
],
|
||||
"interfaces/css-transitions.idl": [
|
||||
[
|
||||
{}
|
||||
@ -319729,6 +319734,12 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-regions/idlharness.html": [
|
||||
[
|
||||
"/css/css-regions/idlharness.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"css/css-regions/stacking-context/javascript-stacking-context-001.html": [
|
||||
[
|
||||
"/css/css-regions/stacking-context/javascript-stacking-context-001.html",
|
||||
@ -527602,6 +527613,10 @@
|
||||
"bede636479a9450801076e2cb5a91a7a8effc0ec",
|
||||
"reftest"
|
||||
],
|
||||
"css/css-regions/idlharness.html": [
|
||||
"b91447384f751f12fde804a03f76017c53dae523",
|
||||
"testharness"
|
||||
],
|
||||
"css/css-regions/interactivity/full-screen/fullscreen-region-content-001.html": [
|
||||
"3957e4a00d80b21da053611ca095cfda0caa6807",
|
||||
"manual"
|
||||
@ -592546,6 +592561,10 @@
|
||||
"9939fb7f08cab0f167e6e0762eac6ad94b2dfd9f",
|
||||
"support"
|
||||
],
|
||||
"interfaces/css-regions.idl": [
|
||||
"23d01fa1c91539c443b2227df6a89e377b65a393",
|
||||
"support"
|
||||
],
|
||||
"interfaces/css-transitions.idl": [
|
||||
"54dd701233a71187c8b675ebbf7336f852a7cace",
|
||||
"support"
|
||||
|
21
testing/web-platform/tests/css/css-regions/idlharness.html
Normal file
21
testing/web-platform/tests/css/css-regions/idlharness.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<title>css-regions IDL tests</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-regions/">
|
||||
<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';
|
||||
|
||||
idl_test(
|
||||
['css-regions'],
|
||||
['cssom', 'dom'],
|
||||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
Document: ['document'],
|
||||
})
|
||||
},
|
||||
'css-regions interfaces'
|
||||
);
|
||||
</script>
|
35
testing/web-platform/tests/interfaces/css-regions.idl
Normal file
35
testing/web-platform/tests/interfaces/css-regions.idl
Normal file
@ -0,0 +1,35 @@
|
||||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Regions Module Level 1" spec.
|
||||
// See: https://drafts.csswg.org/css-regions/
|
||||
|
||||
partial interface Document {
|
||||
readonly attribute NamedFlowMap namedFlows;
|
||||
};
|
||||
|
||||
[Exposed=Window,
|
||||
MapClass=(CSSOMString, NamedFlow)] interface NamedFlowMap {
|
||||
NamedFlow? get(CSSOMString flowName);
|
||||
boolean has(CSSOMString flowName);
|
||||
NamedFlowMap set(CSSOMString flowName, NamedFlow flowValue);
|
||||
boolean delete(CSSOMString flowName);
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface NamedFlow : EventTarget {
|
||||
readonly attribute CSSOMString name;
|
||||
readonly attribute boolean overset;
|
||||
sequence<Region> getRegions();
|
||||
readonly attribute short firstEmptyRegionIndex;
|
||||
sequence<Node> getContent();
|
||||
sequence<Region> getRegionsByContent(Node node);
|
||||
};
|
||||
|
||||
[Exposed=Window,
|
||||
NoInterfaceObject]
|
||||
interface Region {
|
||||
readonly attribute CSSOMString regionOverset;
|
||||
sequence<Range>? getRegionFlowRanges();
|
||||
};
|
||||
|
||||
Element implements Region;
|
Loading…
Reference in New Issue
Block a user