зеркало из https://github.com/mozilla/pjs.git
Bug 475197. box-shadow should work on file input controls. r+sr=roc
--HG-- extra : rebase_source : ca08ac21ddb8c27c7348f87f6963a03cf6fcfa46
This commit is contained in:
Родитель
cd323df9e1
Коммит
a989975f0c
|
@ -548,6 +548,13 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
|||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
// box-shadow
|
||||
if (GetStyleBorder()->mBoxShadow) {
|
||||
nsresult rv = aLists.BorderBackground()->AppendNewToTop(new (aBuilder)
|
||||
nsDisplayBoxShadow(this));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
}
|
||||
|
||||
// Our background is inherited to the text input, and we don't really want to
|
||||
// paint it or out padding and borders (which we never have anyway, per
|
||||
// styles in forms.css) -- doing it just makes us look ugly in some cases and
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html><head>
|
||||
|
||||
<style>
|
||||
#s {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
display: block;
|
||||
width: 400px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
#p {
|
||||
background-color: black;
|
||||
width: 400px;
|
||||
height: 150px;
|
||||
position: absolute;
|
||||
top: 270px;
|
||||
left: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<input type="file" id="s" />
|
||||
<div id="p"> </div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html><head>
|
||||
|
||||
<style>
|
||||
#s {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
display: block;
|
||||
width: 400px;
|
||||
height: 150px;
|
||||
-moz-box-shadow: 0px 250px black;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<input type="file" id="s" />
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -7,3 +7,4 @@
|
|||
== tableboxshadow-tdshadow.html tableboxshadow-tdshadow-ref.html
|
||||
== boxshadow-rounding.html boxshadow-rounding-ref.html
|
||||
== boxshadow-button.html boxshadow-button-ref.html
|
||||
== boxshadow-fileupload.html boxshadow-fileupload-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче