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
...@@ -496,7 +496,7 @@ void InternalPopupMenu::AppendOwnerElementPseudoStyles( ...@@ -496,7 +496,7 @@ void InternalPopupMenu::AppendOwnerElementPseudoStyles(
CSSPropertyID::kWidth, CSSPropertyID::kBorderBottom, CSSPropertyID::kWidth, CSSPropertyID::kBorderBottom,
CSSPropertyID::kBorderLeft, CSSPropertyID::kBorderRight, CSSPropertyID::kBorderLeft, CSSPropertyID::kBorderRight,
CSSPropertyID::kBorderTop, CSSPropertyID::kBorderRadius, CSSPropertyID::kBorderTop, CSSPropertyID::kBorderRadius,
CSSPropertyID::kBoxShadow}; CSSPropertyID::kBackgroundClip, CSSPropertyID::kBoxShadow};
for (CSSPropertyID id : serialize_targets) { for (CSSPropertyID id : serialize_targets) {
PagePopupClient::AddString(SerializeComputedStyleForProperty(style, id), PagePopupClient::AddString(SerializeComputedStyleForProperty(style, id),
......
...@@ -48,10 +48,12 @@ ...@@ -48,10 +48,12 @@
select::-webkit-scrollbar-thumb { select::-webkit-scrollbar-thumb {
border-width: 3px; border-width: 3px;
border-color: black;
border-style: solid; border-style: solid;
border-radius: 10px; border-color: transparent;
background: gray; border-right-color: black;
border-top-color: black;
background-clip: padding-box;
background-color: gray;
border-radius: 0 20px 0 10px; border-radius: 0 20px 0 10px;
box-shadow: -1px 0 4px 1px inset white; 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