зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1545520 [wpt PR 16296] - Make list-and-block-textarea-001.html testing line-break only., a=testonly
Automatic update from web-platform-tests Make list-and-block-textarea-001.html testing line-break only. The purpose of list-and-block-textarea-001.html is to test line-break between list marker and content. Separate the line-height issue to another test case. Bug: 919818 Change-Id: I5206e1d057925d42849d18453777d33c00bfe999 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1404908 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#649471} -- wpt-commits: 642e0e8c3d05d5755d49eeffadbc7ca808ff485a wpt-pr: 16296
This commit is contained in:
Родитель
06406f5861
Коммит
898c6185f3
|
@ -8,17 +8,17 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<style>
|
||||
textarea {
|
||||
border: 0px;
|
||||
padding: 0px;
|
||||
|
||||
ul, textarea {
|
||||
font-size: 16px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<ul>
|
||||
<li id="target">
|
||||
<textarea rows="3" cols="20" style="display:block; height:45px">
|
||||
<li id="target1">
|
||||
<textarea id="target2" rows="3" cols="20" style="display:block; height:45px">
|
||||
hello
|
||||
</textarea>
|
||||
</li>
|
||||
|
@ -26,8 +26,9 @@ textarea {
|
|||
|
||||
<script>
|
||||
test(function() {
|
||||
var height = document.getElementById("target").offsetHeight;
|
||||
assert_equals(height, 45, "the height of li should be 45px, and no extra line generated")
|
||||
var height1 = document.getElementById("target1").offsetHeight;
|
||||
var height2 = document.getElementById("target2").offsetHeight;
|
||||
assert_equals(height1, height2, "List marker and textarea should be in the same line, no line-break between them.")
|
||||
}, "list and block textarea");
|
||||
|
||||
</script>
|
||||
|
|
Загрузка…
Ссылка в новой задаче