My understanding is Apple / Webkit is blocking custom element extension on native HTML elements, which would cut down this 500 line monster to:
class SaganButton extends HTMLButtonElement { … }
Anyone know the reasoning they’re blocking this?
class SaganButton extends HTMLButtonElement { … }
Anyone know the reasoning they’re blocking this?
Can we not just do `:host { display: contents }` and use the same approach?
As for potential property collisions, I think the common wisdom is to just ensure the property name contains a dash, since the html5 spec goes out of its way to avoid using them. Doesn't solve brittle inheritance hierarchies in general, but it does at least stay out of the way of built-in behavior.