if defining roles via elementInternals, then authors should not overwrite those roles with the role attribute.
if no role was defined via elementInternals, then any role can be valid for a custom element, but a form associated custom element should only allow form-related roles.
if defining roles via elementInternals, then authors should not overwrite those roles with the role attribute.
if no role was defined via elementInternals, then any role can be valid for a custom element, but a form associated custom element should only allow form-related roles.
Preview | Diff