Skip to content

Commit 8130fc6

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Simplify how we suppress the canvas background color.
Instead of conditionally inserting the item at the bottom of the BorderBackground() list, just suppress its color. Differential Revision: https://phabricator.services.mozilla.com/D243317 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1956453 gecko-commit: d1cbe9636c3a2c8034db1e6e5abd0bd9def37a57 gecko-reviewers: mstange
1 parent 5309672 commit 8130fc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<style>
2+
* {
3+
background-color: red;
4+
contain: layout;
5+
}
6+
*:first-child {
7+
visibility: hidden;
8+
background-image: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wDGhYvCNVA1EIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAjklEQVR42u3QIQEAMAgAsHNNVspTgARY1BZh0ZWP3VcgSJAgQYIECRKEIEGCBAkSJEgQggQJEiRIkCBBCBIkSJAgQYIECUKQIEGCBAkSJAhBggQJEiRIkCAECRIkSJAgQYIEIUiQIEGCBAkShCBBggQJEiRIEIIECRIkSJAgQYIQJEiQIEGCBAlCkCBBdwaeugIthHvZ+AAAAABJRU5ErkJggg==)
9+
}
10+
</style>
11+
<object data="x">

0 commit comments

Comments
 (0)