Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/div-min-content-orthogonal-auto-margin-right.tentative.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<title> Ensure right takes effect after element is centered for orthogonal writing mode </title>
<link rel="match" href="div-orthogonal-auto-margin-right-ref.html">
<style>
#outer {
inset: 0;
background-color: black;
writing-mode: vertical-rl;
margin: auto;
right: 10px;
position: absolute;
block-size: min-content;
inline-size: 100px;
border: 5px solid red;
}
</style>
<div id="outer"><div style="block-size: 200px;"></div></div>