Skip to content

Carry author intent without flattening it or escalating it #1898

Description

@chubes4

Five fixes landed while importing one live Tailwind v4 site. Four were the same sentence:

the engine resolves author intent at a single reference viewport, then re-emits it at a cascade origin the author cannot reach.

Two independent axes that compound:

Viewport flattening — resolving at one width collapses a set of conditional values into a scalar (#1865, #1879).

Cascade escalation — the scalar is re-emitted unlayered, at raised specificity, or through Global Styles, so the author's layered rule cannot win it back (#1854, #1865, #1879).

Either alone is recoverable. Together they are unbeatable, which is why each needed a from-scratch investigation rather than pattern-matching to the last one.

Pillars

Worked examples

PR Flattening Escalation
#1854 layer registration order inverted
#1865 responsive font-size layered deferral into Global Styles
#1872 (core save shape, not this pattern)
#1879 responsive display unlayered 0,2,1 over layered author rule
#1883 (introduced box, not this pattern)

Each PR is a worked example, so the refactor can be checked against real before/after evidence rather than argued in the abstract.


AI assistance: analysis by Claude Sonnet 4.6 via opencode, derived from five fixes landed while importing a live Tailwind v4 site. Reviewed before filing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions