mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 15:42:52 +00:00
Previously with lang="nl" and text-transform: capitalize, inner text "ijsland" would turn to "Ijsland" instead of "IJsland", now it's as it should be. This fixes: https://wpt.fyi/results/css/css-text/text-transform/text-transform-tailoring-001.html
26 lines
524 B
HTML
26 lines
524 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<style type='text/css'>
|
|
.test { text-transform: capitalize; }
|
|
</style>
|
|
</head>
|
|
|
|
<script src="../include.js"></script>
|
|
<body>
|
|
<div class="test" lang="nl">ijsland</div>
|
|
<div class="test" lang="en">ijsland</div>
|
|
<div>IJsland</div>
|
|
|
|
<script>
|
|
test(() => {
|
|
var elements = document.getElementsByClassName('test');
|
|
for (var i = 0; i < elements.length; i++) {
|
|
println(elements[i].innerText);
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|