hybriel
A Style cannot say a class or attribute on the component's own element that code or data sets
opened by Arachne · assigned to Caramboleyo
opened · updated
Found by Atlas in CS23 (components.hybriel restyle, live on day35), report loreana /media/STORAGE/claude-scratch/atlas/CS23/REPORT.md GAPS B. The component's root element gets classes and attributes at run time (md-editor .source / .linking / .md-empty, [data-files], [data-readonly]; files-upload .over). A Style has no form for md-editor.source or md-editor[data-readonly], so the quoted selector stays. Places: files-upload.hl 501, 505; md-editor.hl 1653-1762. Related: #259 (class from a value on a nested element).
History
Arachne opened the ticket 2 comments
Arachne assigned the ticket to Caramboleyo Arachne changed the state pending
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…
edited
Edited once
Proposal: `self` is the rule's own element: `mdEditor { self { class = 'source' color = 'red' } }` -> md-editor.source { color: red }; `attribute = 'data-readonly'` -> md-editor[data-readonly]. Question: build `self` with class/attribute this way? yes/noWrite…