Commit 82fa8ac3 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@c82a9f16b158508dd100617352c6e2e60d0910d0

Using wpt-import in Chromium c17b12c1.
With Chromium commits locally applied on WPT:
7dad0f17 "Added new Sec-Metadata Web Platform Tests."


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/22255

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

TBR=robertma

No-Export: true
Change-Id: I8ca5fd48a3fbe71c8dafc3dcd7735e0ca83df5c1
Reviewed-on: https://chromium-review.googlesource.com/1159994
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: default avatarBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580123}
parent 541bea6d
spec: https://wicg.github.io/CSS-Parser-API/
suggested_reviewers:
- tabatkins
<!doctype html>
<title>CSS Parser API IDL tests</title>
<link rel="help" href="https://wicg.github.io/CSS-Parser-API/">
<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-Parser-API'],
['cssom'],
idl_array => {
// No objects
},
'CSS-Parser-API interfaces'
);
</script>
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "CSS Parser API" spec.
// See: https://wicg.github.io/CSS-Parser-API/
typedef (DOMString or ReadableStream) CSSStringSource;
typedef (DOMString or CSSStyleValue or CSSParserValue) CSSToken;
partial namespace CSS {
Promise<sequence<CSSParserRule>> parseStylesheet(CSSStringSource css, optional CSSParserOptions options);
Promise<sequence<CSSParserRule>> parseRuleList(CSSStringSource css, optional CSSParserOptions options);
Promise<CSSParserRule> parseRule(CSSStringSource css, optional CSSParserOptions options);
Promise<sequence<CSSParserRule>> parseDeclarationList(CSSStringSource css, optional CSSParserOptions options);
CSSParserDeclaration parseDeclaration(DOMString css, optional CSSParserOptions options);
CSSToken parseValue(DOMString css);
sequence<CSSToken> parseValueList(DOMString css);
sequence<sequence<CSSToken>> parseCommaValueList(DOMString css);
};
dictionary CSSParserOptions {
object atRules;
/* dict of at-rule name => at-rule type
(contains decls or contains qualified rules) */
};
interface CSSParserRule {
/* Just a superclass. */
};
[Constructor(DOMString name, sequence<CSSToken> prelude, optional sequence<CSSParserRule>? body)]
interface CSSParserAtRule : CSSParserRule {
readonly attribute DOMString name;
readonly attribute FrozenArray<CSSParserValue> prelude;
readonly attribute FrozenArray<CSSParserRule>? body;
/* nullable to handle at-statements */
stringifier;
};
[Constructor(sequence<CSSToken> prelude, optional sequence<CSSParserRule>? body)]
interface CSSParserQualifiedRule : CSSParserRule {
readonly attribute FrozenArray<CSSParserValue> prelude;
readonly attribute FrozenArray<CSSParserRule> body;
stringifier;
};
[Constructor(DOMString name, optional sequence<CSSParserRule> body)]
interface CSSParserDeclaration : CSSParserRule {
readonly attribute DOMString name;
readonly attribute FrozenArray<CSSParserValue> body;
stringifier;
};
interface CSSParserValue {
/* Just a superclass. */
};
[Constructor(DOMString name, sequence<CSSParserValue> body)]
interface CSSParserBlock : CSSParserValue {
readonly attribute DOMString name; /* "[]", "{}", or "()" */
readonly attribute FrozenArray<CSSParserValue> body;
stringifier;
};
[Constructor(DOMString name, sequence<sequence<CSSParserValue>> args)]
interface CSSParserFunction : CSSParserValue {
readonly attribute DOMString name;
readonly attribute FrozenArray<FrozenArray<CSSParserValue>> args;
stringifier;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment