Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-writing-modes/text-combine-upright-generated-content-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Writing Modes: text-combine-upright applies to generated content</title>
<link rel="match" href="reference/text-combine-upright-generated-content-001-ref.html">
<meta name="assert" content="Text in ::before and ::after pseudo-elements with 'text-combine-upright: all' is combined like other text.">
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
div { writing-mode: vertical-rl; font: 40px/1 Ahem; }
span::before { content: "12"; text-combine-upright: all; }
span::after { content: "34"; text-combine-upright: all; }
</style>
<p>Test passes if there is a flat black rectangle between each two black squares.</p>
<div>X<span>Y</span>X</div>