DioxusLabs/blitz

Backgrounds are not drawn on inline elements

Open

#340 aperta il 31 gen 2026

Vedi su GitHub
 (3 commenti) (1 reazione) (0 assegnatari)Rust (152 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (3639 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

The before and after pseudo-elements don't have a background-colour (I haven't checked for other properties) when they don't have a display assigned.

<!DOCTYPE html>
<html lang="en">
<body>

    <style>
        .with::after {
            display: block;
            background-color: #FF7500;
            content: "Some content";
        }
        .without::after {
            background-color: #FF7500;
            content: "Some content";
        }
    </style>

    <div class="with">With</div>
    <div class="without">Without</div>
</body>
</html>

Gecko:

Guida contributor