Commit a4199064 authored by huangs's avatar huangs Committed by Commit bot

[New Tab Page] Local NTP: bound the size of favicon image.

Applied to the old NTP and the fast NTP. Otherwise server-injected favicon
that's bigger than 16x16 will overflow.

BUG=474102

Review URL: https://codereview.chromium.org/1059993002

Cr-Commit-Position: refs/heads/master@{#324045}
parent 829dac44
......@@ -594,6 +594,11 @@ html[dir=rtl] .thumb-ntp .mv-favicon {
background-size: 16px 16px;
}
.mv-favicon img {
height: 100%;
width: 100%;
}
/* The notification shown when a tile is blacklisted. */
#mv-notice {
font-size: 12px;
......
......@@ -368,6 +368,11 @@ html[dir=rtl] .mv-favicon {
background-size: 16px 16px;
}
.mv-favicon img {
height: 100%;
width: 100%;
}
.mv-favicon.failed-favicon img {
display: none;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment