No bindings inside `<style>`
AGENTS.md and proposed
in an `html` template never write `${...}` inside the text of a `<style>` element. Lit SSR cannot render it and the element throws on a server. Set a CSS custom property (style attribute on a wrapper, or on the host) and keep the style text static. `yarn lint:html-templates` fails on new ones. In the AGENTS.md of components. Enforced by HTML structure in html and svg templates. Template lint's html-template-check flags a binding inside <style> text in an html`` or svg`` template and fails the pull request; known cases are baselined.
Connects to
- AGENTS.md: code style includes this
- HTML structure in html and svg templates enforces this
- Is written in Web components