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:

貢獻者指南