Skip to content

Commit 89701e7

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Fix inset box shadow painting of fieldsets.
Fieldsets have rather weird background and border painting rules, so we paint inset box shadows as part of the nsFieldSetBorder display item. However there was no equivalent to this call in the WebRender implementation: https://searchfox.org/mozilla-central/rev/d4b9c457db637fde655592d9e2048939b7ab2854/layout/forms/nsFieldSetFrame.cpp#296 Differential Revision: https://phabricator.services.mozilla.com/D136305 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1750276 gecko-commit: 2c37aa3ea90beb833b3779e935131922245899fd gecko-reviewers: miko
1 parent 1c540e3 commit 89701e7

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<title>CSS Test Reference</title>
3+
<style>
4+
div {
5+
width: 100px;
6+
height: 100px;
7+
box-sizing: border-box;
8+
box-shadow: 0 0 0 10px inset black;
9+
}
10+
</style>
11+
<div></div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
<title>inset box shadow works on fieldset</title>
3+
<link rel=help href="https://drafts.csswg.org/css-backgrounds/#box-shadow">
4+
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1750276">
5+
<link rel=author title="Emilio Cobos Álvarez" href="mailto:[email protected]">
6+
<link rel=author title="Mozilla" href="https://mozilla.org">
7+
<link rel=match href="fieldset-inset-shadow-ref.html">
8+
<style>
9+
fieldset {
10+
width: 100px;
11+
height: 100px;
12+
border: none;
13+
margin: 0;
14+
box-sizing: border-box;
15+
box-shadow: 0 0 0 10px inset black;
16+
}
17+
</style>
18+
<fieldset></fieldset>

0 commit comments

Comments
 (0)