| <!DOCTYPE html> | |
| <!-- | |
| Copyright 2011 WebDriver committers | |
| Copyright 2011 Google Inc. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <html> | |
| <head> | |
| <title>location_in_view.html</title> | |
| <style> | |
| #elem { | |
| margin-left: 500px; | |
| width: 5px; | |
| height: 4px; | |
| border: 4px solid black; | |
| background-color: red; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div style='height:100px'></div> | |
| <div id='elem0' style='margin-left:100px; width:100px; height:100px'></div> | |
| <div style='height:300px'></div> | |
| <div style='margin-left:500px; width:200px; height:200px; overflow:scroll'> | |
| <div style='height:500px'></div> | |
| <div id='elem'></div> | |
| </div> | |
| </body> | |
| </html> |