Skip to content

Preserve data-attribute-targeted header min-height when projecting empty layout wrappers #2339

Description

@chubes4

Reproduction

Import https://www.rugliocooks.com/ using Data Liberation 0.7.2 and Static Site Importer 1.20.0 (WordPress 7.1.2). At 1440px the source and portable capture have #SITE_HEADER height 102px and the hero begins at y=102. The imported header has height 0 and the hero begins at y=0, shifting the hero and every subsequent section up 102px on all sampled desktop routes.

In source and captured DOM, an otherwise empty descendant <div data-mesh-id="SITE_HEADERinlineContent"> matches [data-mesh-id="SITE_HEADERinlineContent"] { min-height: 102px }; computed min-height is 102px. Gutenberg output replaces it with an empty wp-block-group blocks-engine-empty-visual-group blocks-engine-attribute-state-* without the source data attribute; computed min-height is 0. The parent header and first masterPage grid row collapse to zero. At 1440px, root grid rows change from 102px 0px 900px 131px to 0px 0px 900px 131px.

Acceptance

Add a neutral fixture with an empty layout wrapper sized only by an authored data-attribute selector. Project its authored sizing onto an editable core Group (or preserve an appropriate selector target) without a source-specific identifier; verify the browser height and downstream grid placement at 390/768/1440. Fresh Ruglio import restores the 102px header and hero starts at y=102 without disturbing phone layout.

AI disclosure: OpenAI GPT-6 Sol via OpenCode compared source, portable capture, and WordPress computed styles in Playwright and drafted this issue; Chris Huber directs the parity loop.

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