Skip to content

Truly independent web browser

695 B
Raw Blame
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Language" content="" >
        <style type='text/css'>
            .test div { width: 50px; background-color: limegreen; }
            #box:lang(ko) { width: 100px; background-color: red; }
        </style>
    </head>
    <body>
        <div class="test"><div id="box">TEST</div></div>
    </body>
</html>
    <script src="../include.js"></script>
    <script>
        test(() => {
            if (document.getElementById('box').offsetWidth == 50) {
                println("OK");
            } else {
                println("FAIL. If candidate is the empty string, return.");
            }
        });
    </script>
</html>