mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 08:01:51 +00:00
Implemented support for setting the pragma-set default language in the `<meta/>` tag with an `http-equiv` attribute `content-language`.
25 lines
773 B
HTML
25 lines
773 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="ko,pl" >
|
|
<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>
|
|
asyncTest((done) => {
|
|
if (document.getElementById('box').offsetWidth == 50) {
|
|
println("OK");
|
|
} else {
|
|
println("FAIL. If the element's content attribute contains a U+002C COMMA character (,) then return.");
|
|
}
|
|
done();
|
|
});
|
|
</script>
|
|
</html>
|