DescriptionScrollbar width is not applied when element hidden
Webkit has css properties through which custom scroll bars can be added.
In case the element's visibility property is hidden and custom scrollbar
properties are applied the scrollbar width is not considered when querying
the element.clientWidth. In case of non-custom scrollbars whether the
element's visibility property is hidden or not correct scrollbar width is
considered.
When a custom scrollbar is created there is a check whether the renderer to
which scrollbar is added is visible or not. This check is not required since
for non-custom scrollbars the same check is not present. Also whether the
element's visibility property is hidden or not a placeholder is set for the
element.
Both behavior i.e custom and non-custom scrollbars should be same.
I already landed this patch on Webkit. Just modified the layout test file.
http://trac.webkit.org/changeset/155323
R=esprehn@chromium.org,eseidel@chromium.org
BUG=343521
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175123
Patch Set 1 #Patch Set 2 : Rebase to latest #
Messages
Total messages: 23 (0 generated)
|