jsdom
Version:
A JavaScript implementation of many web standards
1,409 lines (1,160 loc) • 2.35 MB
JavaScript
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const ceReactionsPreSteps_jsdom_living_helpers_custom_elements =
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPreSteps;
const ceReactionsPostSteps_jsdom_living_helpers_custom_elements =
require("../../jsdom/living/helpers/custom-elements.js").ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const CSSStyleDeclaration = require("./CSSStyleDeclaration.js");
const interfaceName = "CSSStyleProperties";
exports.is = value => {
return utils.isObject(value) && Object.hasOwn(value, implSymbol) && value[implSymbol] instanceof Impl.implementation;
};
exports.isImpl = value => {
return utils.isObject(value) && value instanceof Impl.implementation;
};
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
if (exports.is(value)) {
return utils.implForWrapper(value);
}
throw new globalObject.TypeError(`${context} is not of type 'CSSStyleProperties'.`);
};
function makeWrapper(globalObject, newTarget) {
let proto;
if (newTarget !== undefined) {
proto = newTarget.prototype;
}
if (!utils.isObject(proto)) {
proto = globalObject[ctorRegistrySymbol]["CSSStyleProperties"].prototype;
}
return Object.create(proto);
}
function makeProxy(wrapper, globalObject) {
let proxyHandler = proxyHandlerCache.get(globalObject);
if (proxyHandler === undefined) {
proxyHandler = new ProxyHandler(globalObject);
proxyHandlerCache.set(globalObject, proxyHandler);
}
return new Proxy(wrapper, proxyHandler);
}
exports.create = (globalObject, constructorArgs, privateData) => {
const wrapper = makeWrapper(globalObject);
return exports.setup(wrapper, globalObject, constructorArgs, privateData);
};
exports.createImpl = (globalObject, constructorArgs, privateData) => {
const wrapper = exports.create(globalObject, constructorArgs, privateData);
return utils.implForWrapper(wrapper);
};
exports._internalSetup = (wrapper, globalObject) => {
CSSStyleDeclaration._internalSetup(wrapper, globalObject);
};
exports.setup = (wrapper, globalObject, constructorArgs = [], privateData = {}) => {
privateData.wrapper = wrapper;
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
value: new Impl.implementation(globalObject, constructorArgs, privateData),
configurable: true
});
wrapper = makeProxy(wrapper, globalObject);
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
}
return wrapper;
};
exports.new = (globalObject, newTarget) => {
let wrapper = makeWrapper(globalObject, newTarget);
exports._internalSetup(wrapper, globalObject);
Object.defineProperty(wrapper, implSymbol, {
value: Object.create(Impl.implementation.prototype),
configurable: true
});
wrapper = makeProxy(wrapper, globalObject);
wrapper[implSymbol][utils.wrapperSymbol] = wrapper;
if (Impl.init) {
Impl.init(wrapper[implSymbol]);
}
return wrapper[implSymbol];
};
const exposed = new Set(["Window"]);
exports.install = (globalObject, globalNames) => {
if (!globalNames.some(globalName => exposed.has(globalName))) {
return;
}
const ctorRegistry = utils.initCtorRegistry(globalObject);
class CSSStyleProperties extends globalObject.CSSStyleDeclaration {
constructor() {
throw new globalObject.TypeError("Illegal constructor");
}
get cssFloat() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get cssFloat' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["cssFloat"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set cssFloat(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set cssFloat' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'cssFloat' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["cssFloat"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-align-content"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-align-content' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-align-content"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-align-content"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-align-content' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-align-content' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-align-content"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAlignContent() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAlignContent' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAlignContent"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAlignContent(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAlignContent' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAlignContent' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAlignContent"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAlignContent() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAlignContent' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAlignContent"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAlignContent(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAlignContent' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAlignContent' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAlignContent"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-align-items"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-align-items' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-align-items"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-align-items"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-align-items' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-align-items' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-align-items"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAlignItems() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAlignItems' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAlignItems"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAlignItems(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAlignItems' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAlignItems' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAlignItems"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAlignItems() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAlignItems' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAlignItems"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAlignItems(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAlignItems' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAlignItems' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAlignItems"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-align-self"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-align-self' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-align-self"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-align-self"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-align-self' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-align-self' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-align-self"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAlignSelf() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAlignSelf' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAlignSelf"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAlignSelf(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAlignSelf' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAlignSelf' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAlignSelf"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAlignSelf() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAlignSelf' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAlignSelf"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAlignSelf(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAlignSelf' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAlignSelf' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAlignSelf"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimation"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimation(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimation' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimation"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimation"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimation(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimation' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimation' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimation"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-delay"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-delay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-delay"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-delay"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-delay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation-delay' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-delay"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationDelay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationDelay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationDelay"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationDelay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationDelay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimationDelay' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationDelay"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationDelay() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationDelay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationDelay"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationDelay(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationDelay' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimationDelay' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationDelay"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-direction"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-direction' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-direction"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-direction"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-direction' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation-direction' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-direction"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationDirection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationDirection' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationDirection"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationDirection(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationDirection' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimationDirection' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationDirection"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationDirection() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationDirection' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationDirection"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationDirection(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationDirection' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimationDirection' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationDirection"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-duration"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-duration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-duration"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-duration"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-duration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation-duration' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-duration"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationDuration() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationDuration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationDuration"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationDuration(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationDuration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimationDuration' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationDuration"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationDuration() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationDuration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationDuration"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationDuration(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationDuration' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimationDuration' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationDuration"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-fill-mode"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-fill-mode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-fill-mode"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-fill-mode"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-fill-mode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation-fill-mode' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-fill-mode"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationFillMode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationFillMode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationFillMode"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationFillMode(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationFillMode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimationFillMode' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationFillMode"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationFillMode() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationFillMode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationFillMode"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationFillMode(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationFillMode' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimationFillMode' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationFillMode"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-iteration-count"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-iteration-count' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-iteration-count"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-iteration-count"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-iteration-count' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context:
"Failed to set the '-webkit-animation-iteration-count' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-iteration-count"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationIterationCount() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationIterationCount' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationIterationCount"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationIterationCount(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationIterationCount' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context:
"Failed to set the 'WebkitAnimationIterationCount' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationIterationCount"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationIterationCount() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationIterationCount' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationIterationCount"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationIterationCount(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationIterationCount' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context:
"Failed to set the 'webkitAnimationIterationCount' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationIterationCount"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-name"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-name' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-name"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-name"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-name' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the '-webkit-animation-name' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-name"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationName' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["WebkitAnimationName"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set WebkitAnimationName(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set WebkitAnimationName' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'WebkitAnimationName' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["WebkitAnimationName"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get webkitAnimationName() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get webkitAnimationName' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["webkitAnimationName"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set webkitAnimationName(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set webkitAnimationName' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'webkitAnimationName' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["webkitAnimationName"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get "-webkit-animation-play-state"() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get -webkit-animation-play-state' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return utils.tryWrapperForImpl(esValue[implSymbol]["-webkit-animation-play-state"]);
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
set "-webkit-animation-play-state"(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'set -webkit-animation-play-state' called on an object that is not a valid instance of CSSStyleProperties."
);
}
V = conversions["DOMString"](V, {
context:
"Failed to set the '-webkit-animation-play-state' property on 'CSSStyleProperties': The provided value",
globals: globalObject,
treatNullAsEmptyString: true
});
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["-webkit-animation-play-state"] = V;
} finally {
ceReactionsPostSteps_jsdom_living_helpers_custom_elements(globalObject);
}
}
get WebkitAnimationPlayState() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new globalObject.TypeError(
"'get WebkitAnimationPlayState' called on an object that is not a valid instance of CSSStyleProperties."
);
}
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
try {
return ut