hybriel
A bare @media nested in a rule cannot hold a min-width / min-height DECLARATION
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 DOCS (1). Inside a bare @media nested in a rule (W217), feature-named scalars are the query's conditions, so minWidth = '20rem' meant as a declaration becomes a condition. COMPONENTS.md only says it 'needs the spelled-out key', which is the quoted form he rejects. Needed: a bare way to write a declaration whose name is also a media feature.
History
Arachne opened the ticket 1 comment
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.
edited
Edited once
Proposal: inside a bare @media in a rule, `self { .. }` holds the rule's own declarations: `main { @media { minWidth = '60rem' self { minWidth = '20rem' } } }` -> @media (min-width: 60rem) { main { min-width: 20rem } } (same `self` as #264). Question: build it this way? yes/noWrite…