mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibWeb: Propagate overflow modes from <html> or <body> to viewport
This patch implements "Overflow Viewport Propagation" from CSS-OVERFLOW. It fixes an issue where many websites were not scrollable because they had `overflow: scroll` on the body element and we didn't propagate it.
This commit is contained in:
parent
09eed8eea2
commit
4011a107a4
5 changed files with 76 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
<!doctype html><style>
|
||||
body {
|
||||
height: 100%;
|
||||
overflow: scroll;
|
||||
}
|
||||
.long {
|
||||
height: 2000px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body><div class="long">
|
Loading…
Add table
Add a link
Reference in a new issue