Re: [css-houdini-drafts] [css-typed-om] el.attributeStyleMap.set('display', 'block') does not trigger attributeChangedCallback although style attribute changed. (#996)

@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