Issue Bug Closed

#100947Workspace preview in slider mode lets the "staged version" shine through behind "published version" when CSS background(-color) is not set

Gerrit Hübbers 06/02/23, 09:32 updated 07/23/24, 08:03

Description

(TYPO3 and all extensions on version v11.5.27)

If a page’s CSS does not have for the body element the background / background-color / background-image property set to an opaque value, then the “preview version” always shines through behind the “published version”, no matter how much the preview slider is moved towards “published version”.

Without body background-color (“bad”/ this issue):

preview-without-background-color.png

With a body background-color:

body {
  background-color: beige;
}

e.g. via the following setup.typoscript:

page.cssInline {
    10 = TEXT
    10.value = body {background-color: beige;}
}

preview-with-background-color.png

Browsers usually don’t set an explicit body background style, hence this issue affects all “minimally set-up” TYPO3 instances using the Workspaces extension.

This issue may cause confusion, as it may appear as if the live version is never shown / as if the live version incorrectly shows the staged version.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.