Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/widgets/button-layout/centering-004.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>A ::before originated by a button doesn't center vertically</title>
<link rel="author" href="mailto:obrufau@igalia.com" title="Oriol Brufau">
<link rel="match" href="centering-004-ref.html">
<style>
button::before {
content: "ABC";
display: flow-root;
height: 200px;
}
</style>
<button></button>