Bug 1475777 [wpt PR 11981] - Update the css-counter-styles IDL file, a=testonly

Automatic update from web-platform-testsAdd the css-counter-styles IDL file + test (#11981)

--

wpt-commits: b8a4fffad311305a9219ec7ae983f526ca978f78
wpt-pr: 11981
This commit is contained in:
Luke Bjerring 2018-07-25 18:31:51 +00:00 коммит произвёл James Graham
Родитель 79ee9866ea
Коммит bc7d8f9de3
3 изменённых файлов: 76 добавлений и 0 удалений

Просмотреть файл

@ -287637,6 +287637,11 @@
{}
]
],
"interfaces/css-counter-styles.idl": [
[
{}
]
],
"interfaces/css-font-loading.idl": [
[
{}
@ -316735,6 +316740,12 @@
{}
]
],
"css/css-counter-styles/idlharness.html": [
[
"/css/css-counter-styles/idlharness.html",
{}
]
],
"css/css-display/display-contents-computed-style.html": [
[
"/css/css-display/display-contents-computed-style.html",
@ -507306,6 +507317,10 @@
"fa84f0514e4437d3f7bfa244d0c918adcdb2b387",
"manual"
],
"css/css-counter-styles/idlharness.html": [
"74110d44fac33763366a06a867bec0d8eb804316",
"testharness"
],
"css/css-counter-styles/japanese-formal/css3-counter-styles-047.html": [
"97e41edc2a10dfb95589ce63a578edea9c369a59",
"manual"
@ -592166,6 +592181,10 @@
"0019e54201874e5d2a2b10c887e44b8c42199c32",
"support"
],
"interfaces/css-counter-styles.idl": [
"437dd5859385f5a17f9b9b2509b8f50eeb42a717",
"support"
],
"interfaces/css-font-loading.idl": [
"9f2f252c5b63c159d9680de46a932bfa4335bf11",
"support"

Просмотреть файл

@ -0,0 +1,34 @@
<!doctype html>
<title>css-counter-styles IDL tests</title>
<link rel="help" href="https://drafts.csswg.org/css-counter-styles/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<style>
@counter-style triangle {
system: cyclic;
symbols: ‣;
suffix: " ";
}
</style>
<script>
'use strict';
idl_test(
['css-counter-styles'],
['cssom'],
idl_array => {
try {
self.counter = document.styleSheets[0].rules[0];
} catch (e) {
// Will be surfaced when counter is undefined below.
}
idl_array.add_objects({
CSSCounterStyleRule: ['counter'],
});
},
'css-counter-styles interfaces'
);
</script>

Просмотреть файл

@ -0,0 +1,23 @@
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "CSS Counter Styles Level 3" spec.
// See: https://drafts.csswg.org/css-counter-styles/
partial interface CSSRule {
const unsigned short COUNTER_STYLE_RULE = 11;
};
[Exposed=Window]
interface CSSCounterStyleRule : CSSRule {
attribute CSSOMString name;
attribute CSSOMString system;
attribute CSSOMString symbols;
attribute CSSOMString additiveSymbols;
attribute CSSOMString negative;
attribute CSSOMString prefix;
attribute CSSOMString suffix;
attribute CSSOMString range;
attribute CSSOMString pad;
attribute CSSOMString speakAs;
attribute CSSOMString fallback;
};