<!DOCTYPEHTML>
<html> <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=717878
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 717878</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=717878">Mozilla Bug 717878</a>
<p id="display"></p>
<div id="content"style="display: none">
</div> <!-- size=10 and monospace font ensure there's no overflow in either direction -->
<input id="no-overflow" type="text"
size="10" style="
font-family: monospace;
font-size: 1em;"
value="Short"> <!-- ditto, with appearance:none -->
<input id="no-overflow2" type="text"
size="10" style="
-webkit-appearance:none;
font-family: monospace;
font-size: 1em;"
value="Short"> <!-- size=10, monospace font, and height=0.5em ensure overflow in both directions -->
<input id="overflow" type="text"
size="10" style="
font-family: monospace;
font-size: 3em;
height: 0.5em;"
value="This is a long string"> <!-- ditto, with appearance:none -->
<input id="overflow2" type="text"
size="10" style="
-webkit-appearance:none;
font-family: monospace;
font-size: 3em;
height: 0.5em;"
value="This is a long string">
<pre id="test">
<script type="application/javascript">
/** Test for Bug 717878 **/
/**
* Test an element's scroll properties for correctness
*
* @param element Element to test
* @param prop Specify the property to test,
* i.e. "scrollLeft" or "scrollTop"
* @param propMax Specify the scrollMax property to test,
* i.e. "scrollLeftMax" or "scrollTopMax"
* @param is_overflow Specify whether the element is
* scrollable in the above direction
*/
function test_scroll(element, scroll, scrollMax, is_overflow) {
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.