https://github.com/web-platform-tests/wpt
Revision 433d39e107e2f257dd97236d2ffa4f39a3739acf authored by Emilio Cobos Álvarez on 11 April 2018, 12:29:23 UTC, committed by Emilio Cobos Álvarez on 13 April 2018, 20:20:18 UTC
getComputedStyle returns styles in the node's document per the resolution in
https://github.com/w3c/csswg-drafts/issues/1548.
1 parent dc670d8
Raw File
Tip revision: 433d39e107e2f257dd97236d2ffa4f39a3739acf authored by Emilio Cobos Álvarez on 11 April 2018, 12:29:23 UTC
[cssom] Remove comment that now is invalid per CSSWG resolution.
Tip revision: 433d39e
web-nfc.idl
dictionary NFCMessage {
    sequence<NFCRecord> records;
    USVString           url;
};

typedef (DOMString or unrestricted double or ArrayBuffer or Dictionary) NFCRecordData;

dictionary NFCRecord {
    NFCRecordType recordType;
    USVString     mediaType;
    NFCRecordData data;
};

enum NFCRecordType {
    "empty",
    "text",
    "url",
    "json",
    "opaque"
};

partial interface Navigator {
    [SecureContext,
     SameObject]
    readonly attribute NFC nfc;
};

typedef (DOMString or ArrayBuffer or NFCMessage) NFCPushMessage;

[SecureContext]
interface NFC {
    Promise<void> push(NFCPushMessage message, optional NFCPushOptions options);
    Promise<void> cancelPush(optional NFCPushTarget target = "any");
    Promise<long> watch(MessageCallback callback,
                        optional NFCWatchOptions options);
    Promise<void> cancelWatch(optional long id);
};

callback MessageCallback = void (NFCMessage message);

dictionary NFCPushOptions {
    NFCPushTarget       target = "any";
    unrestricted double timeout = Infinity;
    boolean             ignoreRead = true;
};

enum NFCPushTarget {
    "tag",
    "peer",
    "any"
};

dictionary NFCWatchOptions {
    USVString      url = "";
    NFCRecordType? recordType;
    USVString      mediaType = "";
    NFCWatchMode   mode = "web-nfc-only";
};

enum NFCWatchMode {
    "web-nfc-only",
    "any"
};
back to top