DioxusLabs/blitz

Backgrounds are not drawn on inline elements

Open

#340 创建于 2026年1月31日

在 GitHub 查看
 (3 评论) (1 反应) (0 负责人)Rust (152 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (3,639 star)
PR 合并指标
 (PR 指标待抓取)

描述

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:

贡献者指南