Import css-lists testcases from WPT.
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-lists / list-and-block-textarea-001.html
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>CSS Lists: test list with textarea as its first child</title>
4 <link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
5 <!--  https://bugs.chromium.org/p/chromium/issues/detail?id=767408  -->
6
7 <script src="../../../../../resources/testharness.js"></script>
8 <script src="../../../../../resources/testharnessreport.js"></script>
9
10 <style>
11 textarea {
12   border: 0px;
13   padding: 0px;
14 }
15 </style>
16
17 <div id="log"></div>
18
19 <ul>
20   <li id="target">
21     <textarea rows="3" cols="20" style="display:block; height:45px">
22       hello
23     </textarea>
24   </li>
25 </ul>
26
27 <script>
28 test(function() {
29   var height = document.getElementById("target").offsetHeight;
30   assert_equals(height, 45, "the height of li should be 45px, and no extra line generated")
31 }, "list and block textarea");
32
33 </script>