Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
| index cffe90e1a6a699f5bde5aa09d48f237edde15443..d796adeb53bf07c6d33df623dab6de6f457ae27e 100644 |
| --- a/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleAdjuster.cpp |
| @@ -197,7 +197,7 @@ void StyleAdjuster::adjustComputedStyle(ComputedStyle& style, const ComputedStyl |
| || style.hasFilter() |
| || style.hasBlendMode() |
| || style.hasIsolation() |
| - || style.position() == FixedPosition |
| + || style.hasViewportConstrainedPosition() |
| || isInTopLayer(e, style) |
| || hasWillChangeThatCreatesStackingContext(style))) |
| style.setZIndex(0); |
| @@ -464,6 +464,12 @@ void StyleAdjuster::adjustStyleForDisplay(ComputedStyle& style, const ComputedSt |
| && style.position() == RelativePosition) |
| style.setPosition(StaticPosition); |
| + // Cannot support position: sticky for table columns and column groups because current code is only doing |
| + // background painting through columns / column groups |
|
chrishtr
2015/10/06 17:08:33
Is this recorded in a bug?
According to this spec
flackr
2015/10/07 20:38:12
Hmm, doesn't look like it, just the bug for a cras
chrishtr
2015/11/04 01:40:43
The spec says: "The effect of position: sticky on
flackr
2015/11/25 21:03:01
There are many public examples where sticky is use
|
| + if ((style.display() == TABLE_COLUMN_GROUP || style.display() == TABLE_COLUMN) |
| + && style.position() == StickyPosition) |
| + style.setPosition(StaticPosition); |
| + |
| // writing-mode does not apply to table row groups, table column groups, table rows, and table columns. |
| // FIXME: Table cells should be allowed to be perpendicular or flipped with respect to the table, though. |
| if (style.display() == TABLE_COLUMN || style.display() == TABLE_COLUMN_GROUP || style.display() == TABLE_FOOTER_GROUP |