Wuelle / Stormlicht

The Stormlicht browser engine.
MIT License
12 stars 0 forks source link

Implement CSS class selectors #3

Open Wuelle opened 10 months ago

Wuelle commented 10 months ago

Description

The following html does not currently render correctly, due to us not supporting class selectors in CSS.

<!DOCTYPE html>
<html>

<head>
    <style>
        html,
        body {
            width: 100%;
            height: 100%;
            background-color: green;
        }

        .foo {
            width: 200px;
            height: 200px;
            background-color: purple;
        }
    </style>
</head>

<body>
    <div class="foo">Class Selector Test</div>
</body>

</html>

Render Comparision

Stormlicht Firefox Reference
image image

References