(elem)
| 40 | customElements.define("custom-square", Square); |
| 41 | |
| 42 | function updateStyle(elem) { |
| 43 | const shadow = elem.shadowRoot; |
| 44 | shadow.querySelector("style").textContent = ` |
| 45 | div { |
| 46 | width: ${elem.getAttribute("size")}px; |
| 47 | height: ${elem.getAttribute("size")}px; |
| 48 | background-color: ${elem.getAttribute("color")}; |
| 49 | } |
| 50 | `; |
| 51 | } |
| 52 | |
| 53 | const add = document.querySelector(".add"); |
| 54 | const update = document.querySelector(".update"); |
no outgoing calls
no test coverage detected