Skip to content

Commit

Permalink
add test for input overflow text preserved per discussion in w3c/cssw…
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsender committed Nov 6, 2017
1 parent 7902796 commit 8db8ac7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
26 changes: 26 additions & 0 deletions css/css-overflow-3/input-scrollable-region-001.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Input Text Padding and Overflow: css-overflow-3</title>
<link rel="author" title="Boaz Sender, Ali Juma, Robert Ma">
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable">
<link rel="match" href="reference/input-scrollable-region-001-ref.html">
<meta name="assert" content="input text is preserved when the (input heigh
minus the input padding minus the input border) is
smaller than the height of the text">
<style>
input {
width: 100px;
margin: 0px;
border: 1px solid black;
height: 30px;
padding: 10px;
font-size: 18px;
font-family: sans-serif;
box-sizing: border-box;
line-height: 1;
}

</style>
<body>
<input type="text" value="foo">
</body>
22 changes: 22 additions & 0 deletions css/css-overflow-3/reference/input-scrollable-region-001-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Basic User Interface Reference File</title>
<link rel="author" title="Boaz Sender, Ali Juma, Robert Ma">
<style>
div {
width: 100px;
margin: 0px;
border: 1px solid black;
height: 30px;
padding: 5px 10px;
font-size: 18px;
font-family: sans-serif;
box-sizing: border-box;
line-height: 1;
}
</style>
<body>
<div>
foo
</div>
</body>

0 comments on commit 8db8ac7

Please sign in to comment.