We assume elsewhere that any abspos element's containing block must be some kind of Layout::Box, so let's enforce that when deciding if a box can be such a container. This fixes a bad downcast on https://serpapi.com/
12 lines
176 B
HTML
12 lines
176 B
HTML
<!doctype html><style>
|
|
body {
|
|
display: inline;
|
|
position: relative;
|
|
}
|
|
main {
|
|
display: inline-block;
|
|
}
|
|
div {
|
|
position: absolute;
|
|
}
|
|
</style><body><main><div>hello
|