Revert style_production.rs to simple emit-on-first-encounter
The contiguity check in compute_style_batches guarantees that no two
distinct batches can interleave in any route's ordering. This means the
original simple approach — emit each batch/item on first encounter in DFS
order — produces correct CSS cascade ordering without needing the
topological sort over emission units.
This removes ~170 lines of complexity (EmissionUnit enum, Kahn's algorithm,
module_dependents propagation to StyleGroups) that is no longer needed.
Co-Authored-By:
Claude <noreply@anthropic.com>
Showing
Please
register
or
sign in
to comment