mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Add parsing of overflow: scroll
and auto
.
Elements with overflow scroll/auto are not yet scrollable, but they will be clipped correctly (like `overflow: hidden`).
This commit is contained in:
parent
21e4d85511
commit
f7e371fdfd
5 changed files with 56 additions and 6 deletions
22
src/test/ref/overflow_scroll.html
Normal file
22
src/test/ref/overflow_scroll.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#first {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
overflow: scroll;
|
||||
}
|
||||
#second {
|
||||
height: 100px;
|
||||
width: 200px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="first">
|
||||
<div id="second">
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue