DioxusLabs/blitz

Backgrounds are not drawn on inline elements

Open

#340 aberto em 31 de jan. de 2026

Ver no GitHub
 (3 comments) (1 reaction) (0 assignees)Rust (152 forks)github user discovery
enhancementhelp wanted

Métricas do repositório

Stars
 (3.639 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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:

Guia do colaborador