зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1456052 - Change overflow-clip-box of textarea to be consistent with text inputs and match other browsers. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D38794
This commit is contained in:
Родитель
0b9ef71f7f
Коммит
10d7e8d01b
|
@ -28,14 +28,6 @@
|
|||
height: 300px;
|
||||
background: black;
|
||||
}
|
||||
#cover2 { /* corresponds to the bottom padding inside the textarea */
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -44,7 +36,7 @@
|
|||
for (var i = 0; i < 1000; ++i) {
|
||||
ss.push(i);
|
||||
}
|
||||
document.write("<div id='t'><div id=cover2></div>" + ss.join(" ") + "</div>");
|
||||
document.write("<div id='t'>" + ss.join(" ") + "</div>");
|
||||
</script>
|
||||
<div id="cover"></div>
|
||||
</body>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
textarea {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
box-sizing: border-box;
|
||||
padding: 50px 0px;
|
||||
overflow: hidden;
|
||||
resize: none;
|
||||
}
|
||||
</style>
|
||||
<textarea></textarea>
|
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
textarea {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
box-sizing: border-box;
|
||||
padding: 50px 0px;
|
||||
overflow: hidden;
|
||||
resize: none;
|
||||
}
|
||||
</style>
|
||||
<!-- Text should be visible -->
|
||||
<textarea>Foo</textarea>
|
|
@ -15,3 +15,4 @@ fuzzy-if(skiaContent,0-1,0-1) == rtl.html rtl-dynamic-style.html
|
|||
fuzzy-if(asyncPan&&!layersGPUAccelerated,0-102,0-4168) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == padding-scrollbar-placement.html padding-scrollbar-placement-ref.html # Bug 1392106
|
||||
== various-cols.html various-cols-ref.html
|
||||
== appearance-background-change.html appearance-background-change-ref.html
|
||||
!= padding-text-overflow.html padding-text-overflow-notref.html
|
||||
|
|
|
@ -123,7 +123,7 @@ textarea {
|
|||
resize: both;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
overflow-clip-box: content-box;
|
||||
overflow-clip-box: padding-box content-box;
|
||||
}
|
||||
|
||||
/* A few properties that we don't want to inherit by default: */
|
||||
|
|
Загрузка…
Ссылка в новой задаче