From 51dc1ab22e6df6fe1309024441cfe2d9b95952e6 Mon Sep 17 00:00:00 2001 From: Tab Atkins-Bittner Date: Tue, 14 Jan 2025 15:41:23 -0800 Subject: [PATCH] rebase test due to pygments upgrade --- .../aom/spec/custom-element-semantics.html | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/github/WICG/aom/spec/custom-element-semantics.html b/tests/github/WICG/aom/spec/custom-element-semantics.html index 7c15fd5d07..73ebb01c5e 100644 --- a/tests/github/WICG/aom/spec/custom-element-semantics.html +++ b/tests/github/WICG/aom/spec/custom-element-semantics.html @@ -837,30 +837,30 @@

class CustomTab extends HTMLElement { - #internals = null; - #tablist = null; - #tabpanel = null; + #internals = null; + #tablist = null; + #tabpanel = null; constructor() { super(); - this.#internals = customElements.createInternals(this); - this.#internals.role = "tab"; + this.#internals = customElements.createInternals(this); + this.#internals.role = "tab"; } // Observe the custom "active" attribute. static get observedAttributes() { return ["active"]; } connectedCallback() { - this.#tablist = this.parentElement; + this.#tablist = this.parentElement; } setTabPanel(tabpanel) { if (tabpanel.localName !== "custom-tabpanel" || tabPanel.id === "") return; // fail silently - this.#tabpanel = tabpanel; + this.#tabpanel = tabpanel; tabpanel.setTab(this); - this.#internals.ariaControls = tabPanel; // does not reflect + this.#internals.ariaControls = tabPanel; // does not reflect } // ... setters/getters for custom properties which reflect to attributes @@ -869,14 +869,14 @@

switch(name) { case "active": let active = (newValue != null); - this.#tabpanel.shown = active; + this.#tabpanel.shown = active; // When the custom "active" attribute changes, // keep the accessible "selected" state in sync. - this.#internals.ariaSelected = (newValue !== null); + this.#internals.ariaSelected = (newValue !== null); if (selected) - this.#tablist.setSelectedTab(this); // ensure no other tab has "active" set + this.#tablist.setSelectedTab(this); // ensure no other tab has "active" set break; } } @@ -1003,14 +1003,14 @@

switch(name) { case "active": let selected = (newValue != null); - this.#tabpanel.shown = selected; + this.#tabpanel.shown = selected; // Note: overrides value set in custom element definition. - this.#internals.ariaSelected = selected; + this.#internals.ariaSelected = selected; // ensure no other tab has "selected" set if (selected) - this.#tablist.setSelectedTab(this); + this.#tablist.setSelectedTab(this); break; } }