I'm a bit hesitant to merge this without having a discussion about the field type and what it means that reflect is true in custom-elements.json. It might need to be a bit more fine-grained than that, such as reflect: <"both"|"to-attribute"|"to-property">. For example, in reality a LitElement-controlled property is "to-property" per default and would become "both" when setting reflect: true in the property decorator.
Thanks for this contribution :-)
I'm a bit hesitant to merge this without having a discussion about the field type and what it means that
reflect
is true incustom-elements.json
. It might need to be a bit more fine-grained than that, such asreflect: <"both"|"to-attribute"|"to-property">
. For example, in reality a LitElement-controlled property is "to-property" per default and would become "both" when settingreflect: true
in the property decorator.It might also be valuable to start the discussion here: https://github.com/webcomponents/custom-elements-json