Index: third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html |
diff --git a/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html b/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..12ab792ee4c069b1fac08a1f5f8bfc03b4b8cdff |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/compositing/overflow/ancestor-overflow-layer-of-sticky-child-of-compositing-container.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<style> |
+.fixed { |
+ position: fixed; |
+} |
+ |
+.sticky { |
+ position: sticky; |
+ top: 0; |
+} |
+ |
+.composited { |
+ /* Force compositing without creating a stacking context */ |
+ backface-visibility: hidden; |
+} |
+ |
+.spacer { |
+ height: 2000px; |
+} |
+ |
+.container { |
+ width: 500px; |
+ height: 500px; |
+ overflow: scroll; |
+} |
+</style> |
+ |
+<div class="composited fixed"> |
flackr
2017/05/17 19:44:03
Does this being fixed position affect the test? Wh
yigu
2017/05/17 20:28:14
With "position:fixed", the sticky element's compos
|
+ There are two lines below: |
+ <div class="composited container"> |
+ <div class="sticky"> |
+ First line. <br> |
+ Second line. |
flackr
2017/05/17 19:44:03
It's a little unclear what this is testing. I assu
yigu
2017/05/17 20:28:14
Actually anything in the sticky div has an incorre
|
+ </div> |
+ <div class="spacer"></div> |
+ </div> |
+</div> |
+ |