- From: Joe Pea via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Aug 2020 21:38:06 +0000
- To: public-houdini-archive@w3.org
@Danny-Engelman Seems you've got access to Safari. :) Can you try the following code to see if it works in Safari (without static class properties)?
```js
class MyEl extends HTMLElement {
static get observedAttributes() { return ['style'] }
attributeChangedCallback(attr, oldVal, newVal) { console.log(attr, oldVal, newVal) }
}
customElements.define('my-el', MyEl)
const el = document.createElement('my-el')
document.body.append(el)
console.log('--------------------')
el.style.setProperty('display', 'none')
console.log('--------------------')
el.attributeStyleMap.set('display', new CSSKeywordValue('block')) // no log
console.log('--------------------')
el.style.setProperty('display', 'none')
console.log('--------------------')
```
--
GitHub Notification of comment by trusktr
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/996#issuecomment-669525835 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 5 August 2020 21:38:07 UTC