mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07: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,12 @@
|
|||
<!doctype html><style>
|
||||
html {
|
||||
overflow: visible;
|
||||
}
|
||||
body {
|
||||
overflow: scroll;
|
||||
}
|
||||
div {
|
||||
width: 100px;
|
||||
height: 2000px;
|
||||
}
|
||||
</style><body><div>
|
Loading…
Add table
Add a link
Reference in a new issue