forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for input overflow text preserved per discussion in w3c/cssw…
- Loading branch information
1 parent
7902796
commit 8db8ac7
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
css/css-overflow-3/reference/input-scrollable-region-001-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |