mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 527459 - Tests for paddings specified in percent on text inputs. r=bz
This commit is contained in:
parent
0033097044
commit
3d103768f5
21
layout/reftests/forms/input-percentage-padding-ref.html
Normal file
21
layout/reftests/forms/input-percentage-padding-ref.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.container {
|
||||
width: 400px;
|
||||
background: #ddd;
|
||||
}
|
||||
.text-input {
|
||||
width: 200px; /* 50% */
|
||||
padding: 40px; /* 10% */
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<input type="text" class="text-input" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
21
layout/reftests/forms/input-percentage-padding.html
Normal file
21
layout/reftests/forms/input-percentage-padding.html
Normal file
@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.container {
|
||||
width: 400px;
|
||||
background: #ddd;
|
||||
}
|
||||
.text-input {
|
||||
width: 50%; /* 200px */
|
||||
padding: 10%; /* 40px */
|
||||
background: #fff;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<input type="text" class="text-input" />
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -81,3 +81,5 @@ include output/reftest.list
|
||||
|
||||
# progress element
|
||||
include progress/reftest.list
|
||||
|
||||
== input-percentage-padding.html input-percentage-padding-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user