Commit 162e751f authored by Seokho Song's avatar Seokho Song Committed by Chromium LUCI CQ

Apply BackgroundClip for pseudo custom scrollbar styles

According to the issue, background-clip was not applied to pseudo-styles.
Therefore, kBackgroundClip appended to target styles.

Bug: 1076508
Change-Id: I93595a14e3c4429faa56b7d060e3b8b9242b0518
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586293Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Commit-Queue: Seokho Song <0xdevssh@gmail.com>
Cr-Commit-Position: refs/heads/master@{#836975}
parent 019a2364
......@@ -492,11 +492,11 @@ void InternalPopupMenu::AppendOwnerElementPseudoStyles(
PagePopupClient::AddString(target + "{ \n", data);
const CSSPropertyID serialize_targets[] = {
CSSPropertyID::kDisplay, CSSPropertyID::kBackgroundColor,
CSSPropertyID::kWidth, CSSPropertyID::kBorderBottom,
CSSPropertyID::kBorderLeft, CSSPropertyID::kBorderRight,
CSSPropertyID::kBorderTop, CSSPropertyID::kBorderRadius,
CSSPropertyID::kBoxShadow};
CSSPropertyID::kDisplay, CSSPropertyID::kBackgroundColor,
CSSPropertyID::kWidth, CSSPropertyID::kBorderBottom,
CSSPropertyID::kBorderLeft, CSSPropertyID::kBorderRight,
CSSPropertyID::kBorderTop, CSSPropertyID::kBorderRadius,
CSSPropertyID::kBackgroundClip, CSSPropertyID::kBoxShadow};
for (CSSPropertyID id : serialize_targets) {
PagePopupClient::AddString(SerializeComputedStyleForProperty(style, id),
......
......@@ -48,10 +48,12 @@
select::-webkit-scrollbar-thumb {
border-width: 3px;
border-color: black;
border-style: solid;
border-radius: 10px;
background: gray;
border-color: transparent;
border-right-color: black;
border-top-color: black;
background-clip: padding-box;
background-color: gray;
border-radius: 0 20px 0 10px;
box-shadow: -1px 0 4px 1px inset white;
}
......
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