blob: 697623941bc18be4f8be8945ba911780709350e5 [file] [log] [blame]
<!DOCTYPE html>
| This test checks that a fixed position element has its em units computed
| from its parent's font-size, despite its containing block being the
| initial containing block.
.root-container {
font-size: 2px;
.half-font-size-container {
font-size: 0.5em;
.fixed-element {
position: fixed;
width: 50em;
height: 50em;
top: 25px;
left: 25px;
background-color: rgb(100, 100, 255);
<div class="root-container">
<div class="half-font-size-container">
<div class="fixed-element">