src/vs/workbench/contrib/webviewView/browser/webviewViewPane.ts/WebviewViewPane/layoutWebview
class WebviewViewPane:	private layoutWebview() {
		const webviewEntry = this._webview.value;
		if (!this._container || !webviewEntry) {
			return;
		}

		webviewEntry.layoutWebviewOverElement(this._container);

		if (!this._rootContainer) {
			this._rootContainer = this.findRootContainer(this._container);
		}

		if (this._rootContainer) {
			const containerRect = this._container.getBoundingClientRect();
			const rootRect = this._rootContainer.getBoundingClientRect();

			const clipTop = Math.max(rootRect.top - containerRect.top, 0);
			const clipRight = Math.max(containerRect.width - (containerRect.right - rootRect.right), 0);
			const clipBottom = Math.max(containerRect.height - (containerRect.bottom - rootRect.bottom), 0);
			const clipLeft = Math.max(rootRect.left - containerRect.left, 0);
			webviewEntry.container.style.clip = `rect(${clipTop}px, ${clipRight}px, ${clipBottom}px, ${clipLeft}px)`;
		}
	}