mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00

Implemented support for setting the pragma-set default language in the `<meta/>` tag with an `http-equiv` attribute `content-language`.
27 lines
903 B
HTML
27 lines
903 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="
|
|
ko
|
|
som! ?et #$% hi;0 ng " >
|
|
<style type='text/css'>
|
|
.test div { width: 50px; background-color: red; }
|
|
#box:lang(ko) { width: 100px; background-color: limegreen; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="test"><div id="box">TEST</div></div>
|
|
</body>
|
|
</html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest((done) => {
|
|
if (document.getElementById('box').offsetWidth == 100) {
|
|
println("OK");
|
|
} else {
|
|
println("FAIL. If there is a pragma-set default language set, then that is the language of the node. It should match the first non-whitespace code points from the contet attribute.");
|
|
}
|
|
done();
|
|
});
|
|
</script>
|
|
</html>
|