Skip to content

Scoped styles follow-up: relax OCTANE_HYDRATE_SPLIT_STYLE now that scopes are lexical #935

Closed

Description

@leonidaz

Follow-up to RFC tsrx-org/RFCs#1 (Octane branch feat/scoped-styles-apply, compiler pre-pass in packages/octane/src/compiler/style-scopes.js). hydrate-boundaries.js still rejects a scoped <style> inside a split child (OCTANE_HYDRATE_SPLIT_STYLE); the message now names "the style scope it sits in", but the restriction itself is the v1 policy (plan D11).

With per-scope hashes a split child that owns a complete style scope (its blocks and the elements they stamp all inside the boundary) could compile the sheet under the same position-derived hash on both sides. Investigate lifting the error for that case, keeping it for blocks whose scope straddles the boundary, and update docs/deferred-hydration.md accordingly.

Plan reference: S8.5.

Activity

  1. jonkwheeler commented on Sep 4, 2026

    @jonkwheeler
    Contributor

    Working on this in #959

    @leonidaz Complete lexical style scopes inside split Hydrate children are allowed; straddling still errors.

  2. leonidaz commented on Sep 6, 2026

    @leonidaz
    CollaboratorAuthor

    closed by #959

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