| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <rml>
- <head>
- <title>Nested overflow</title>
- <link type="text/rcss" href="../style.rcss"/>
- <meta name="Description" content="The deepest element in the tree should catch the overflow." />
- <style>
- body {
- display: block;
- background: #ddd;
- color: #444;
- }
- div.outer {
- overflow: auto;
- width: 200dp;
- height: 200dp;
- }
- div.overflow {
- border: 1dp black;
- overflow: auto;
- width: 150dp;
- height: 150dp;
- }
- div.wide {
- width: 300dp;
- height: 20dp;
- text-align: center;
- border: 1dp #0a0;
- margin: 5dp;
- background-color: #eee;
- }
- </style>
- </head>
- <body>
- <p>There should should only be one scroll bar visible, inside the black border.</p>
- <div class="outer">
- <div class="overflow">
- <div class="wide">Wide element</div>
- </div>
- </div>
- </body>
- </rml>
|