Skip to content

style(createHtml): move background color from html to body - #292

Merged
midudev merged 1 commit into
midudev:mainfrom
raymundo-salazar:main
Oct 1, 2026
Merged

midudev merged 1 commit into
midudev:mainfrom
raymundo-salazar:main

Conversation

@raymundo-salazar

Copy link
Copy Markdown
Contributor

PR Description

This PR fixes an issue where the preview background did not fill the entire viewport when a background color was applied to the body.

The issue was caused by the default white background being applied to both the html and body elements. Since html had an explicit background, the browser could not propagate the body background to the document canvas as it normally would.

Key Changes:

  • Removed the default background color from the html element.
  • Kept the default white background on the body to preserve the white preview background.
  • Restored the browser's native behavior for propagating the body background across the entire viewport.
  • Fixed the inconsistent preview behavior reported when using viewport units such as vh.

Screenshots / Evidence

Before

Captura de pantalla 2026-09-30 a la(s) 9 34 49 a m

After

Captura de pantalla 2026-09-30 a la(s) 9 37 08 a m Captura de pantalla 2026-09-30 a la(s) 9 37 05 a m

Related Issue: #290

@midudev
midudev merged commit 254249a into midudev:main Oct 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants