Skip to content

Commit f87a664

Browse files
committed
Merge branch 'fix-background-paint-perf'
2 parents 25e5377 + d35b3dd commit f87a664

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app-header/app-header.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,24 @@ Polymer({
281281
@apply --layout-fit;
282282
height: 100%;
283283
pointer-events: none;
284+
}
285+
286+
#backgroundFrontLayer::before,
287+
#backgroundRearLayer::before {
288+
@apply --layout-fit;
289+
height: 100%;
290+
pointer-events: none;
284291
background-size: cover;
292+
content: '';
293+
will-change: opacity;
294+
width: 100%;
285295
}
286296
287-
#backgroundFrontLayer {
297+
#backgroundFrontLayer::before {
288298
@apply --app-header-background-front-layer;
289299
}
290300
291-
#backgroundRearLayer {
301+
#backgroundRearLayer::before {
292302
opacity: 0;
293303
@apply --app-header-background-rear-layer;
294304
}

0 commit comments

Comments
 (0)