New issue
Advanced search Search tips

Issue 664373 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 1
Type: Bug



Sign in to add a comment

position: sticky incorrectly offsets composited sticky elements by scroller border.

Project Member Reported by flackr@chromium.org, Nov 11 2016

Issue description

Version: 56.0.2913.0
OS: All

What steps will reproduce the problem?
(1) Visit http://jsbin.com/jorapep/edit?html,css,output

What is the expected result?
Expect sticky position object to be aligned with border.

What happens instead?
Instead, it is offset by double the thickness of the border.

Please use labels and text to provide additional information.

 

Comment 1 by flackr@chromium.org, Nov 11 2016

Fix is in review: https://codereview.chromium.org/2494933002

Comment 2 by yio...@gmail.com, Nov 14 2016

The top and left margins appear.In theory, it should have a border.
QQ20161110-0.png
12.8 KB View Download
Project Member

Comment 3 by bugdroid1@chromium.org, Nov 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/177abac624e0be0d9d94c7cc1392f9beddf97c87

commit 177abac624e0be0d9d94c7cc1392f9beddf97c87
Author: flackr <flackr@chromium.org>
Date: Mon Nov 14 23:45:57 2016

Exclude border from overflow scroller in sticky constraints.

BUG= 664373 
TEST=LayoutBoxModelObjectTest.StickyPositionConstraints, LayoutBoxModelObjectTest.StickyPositionContainerIsScroller

Review-Url: https://codereview.chromium.org/2494933002
Cr-Commit-Position: refs/heads/master@{#431982}

[modify] https://crrev.com/177abac624e0be0d9d94c7cc1392f9beddf97c87/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp
[modify] https://crrev.com/177abac624e0be0d9d94c7cc1392f9beddf97c87/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp

Comment 4 by flackr@chromium.org, Nov 15 2016

Status: Fixed (was: Started)

Sign in to add a comment