18 lines
586 B
HTML
18 lines
586 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
<body>
|
|
This test makes sure that text-orientation: sideways is treated the same as text-orientation: sideways-right.
|
|
<div id="placeholder"></div>
|
|
<div style="text-orientation: upright;">
|
|
<div id="t" style="-webkit-writing-mode: vertical-rl; text-orientation: sideways;">苹果公司 abcd</div>
|
|
</div>
|
|
<script>
|
|
var t = document.getElementById("t");
|
|
var receiver = document.getElementById("placeholder");
|
|
receiver.textContent = window.getComputedStyle(t).getPropertyValue("-webkit-text-orientation");
|
|
</script>
|
|
</body>
|
|
</html> |