mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
absolutely-positioned elements. This also implements a little bit of the infrastructure needed to support for fragmentation via support for multiple positioned fragments in one flow. Improves Google.
30 lines
414 B
HTML
30 lines
414 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
font-size: 0.1px;
|
|
line-height: 0;
|
|
}
|
|
#a {
|
|
padding-left: 100px;
|
|
}
|
|
#b {
|
|
position: relative;
|
|
}
|
|
#c {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100px;
|
|
height: 100px;
|
|
background: purple;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div><span id=a> </span><span id=b> <div id=c></div></span></span></div>
|
|
</body>
|
|
</html>
|
|
|