web: Add width, height, and type to RufflePlayer (fix #13176)

This commit is contained in:
Daniel Jacobs 2023-09-13 16:00:29 -04:00 committed by Adrian Wielgosik
parent ecbf325d41
commit 33eb739ee6
1 changed files with 60 additions and 0 deletions

View File

@ -453,6 +453,66 @@ export class RufflePlayer extends HTMLElement {
);
}
/**
* Polyfill of height getter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
get height(): string {
return this.getAttribute("height") || "";
}
/**
* Polyfill of height setter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
set height(height: string) {
this.setAttribute("height", height);
}
/**
* Polyfill of width getter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
get width(): string {
return this.getAttribute("width") || "";
}
/**
* Polyfill of width setter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
set width(widthVal: string) {
this.setAttribute("width", widthVal);
}
/**
* Polyfill of type getter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
get type(): string {
return this.getAttribute("type") || "";
}
/**
* Polyfill of type setter for HTMLEmbedElement and HTMLObjectElement
*
* @ignore
* @internal
*/
set type(typeVal: string) {
this.setAttribute("type", typeVal);
}
/**
* @ignore
* @internal