From f1456685df89847717d2a59516120682f2fd6646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Sun, 30 Jan 2022 19:26:30 -0500 Subject: [PATCH 1/6] Added 4 new sticky tests --- .../position-sticky-fixed-ancestor-002.html | 52 +++++++++++++ .../position-sticky-fixed-ancestor-003.html | 43 +++++++++++ ...-sticky-scrolled-remove-horiz-sibling.html | 74 +++++++++++++++++++ .../position-sticky-stacking-context-002.html | 38 ++++++++++ ...osition-sticky-fixed-ancestor-002-ref.html | 18 +++++ 5 files changed, 225 insertions(+) create mode 100644 css/css-position/sticky/position-sticky-fixed-ancestor-002.html create mode 100644 css/css-position/sticky/position-sticky-fixed-ancestor-003.html create mode 100644 css/css-position/sticky/position-sticky-scrolled-remove-horiz-sibling.html create mode 100644 css/css-position/sticky/position-sticky-stacking-context-002.html create mode 100644 css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html diff --git a/css/css-position/sticky/position-sticky-fixed-ancestor-002.html b/css/css-position/sticky/position-sticky-fixed-ancestor-002.html new file mode 100644 index 00000000000000..e8b35cb6a03e08 --- /dev/null +++ b/css/css-position/sticky/position-sticky-fixed-ancestor-002.html @@ -0,0 +1,52 @@ + + + + + CSS Positioned Layout Test: a sticky element inside a fixed ancestor + + + + + + + + + + + + +
+ +
FAIL
+ +
PASS
+ +
diff --git a/css/css-position/sticky/position-sticky-fixed-ancestor-003.html b/css/css-position/sticky/position-sticky-fixed-ancestor-003.html new file mode 100644 index 00000000000000..db1d5998c4b3bd --- /dev/null +++ b/css/css-position/sticky/position-sticky-fixed-ancestor-003.html @@ -0,0 +1,43 @@ + + + + + CSS Positioned Layout Test: a sticky element inside a fixed ancestor + + + + + + + + +
+ +
FAIL
+ +
PASS
+ +
diff --git a/css/css-position/sticky/position-sticky-scrolled-remove-horiz-sibling.html b/css/css-position/sticky/position-sticky-scrolled-remove-horiz-sibling.html new file mode 100644 index 00000000000000..94bd7a1edd75ec --- /dev/null +++ b/css/css-position/sticky/position-sticky-scrolled-remove-horiz-sibling.html @@ -0,0 +1,74 @@ + + + + + CSS Positioned Layout Test: element with 'position: sticky' and removing a sibling in the horizontal axis + + + + + + + + + + + + + +

Test passes if there is a filled green square and no horizontal scrollbar. + +

+ +
+ +
+ + diff --git a/css/css-position/sticky/position-sticky-stacking-context-002.html b/css/css-position/sticky/position-sticky-stacking-context-002.html new file mode 100644 index 00000000000000..938cd8c99076dd --- /dev/null +++ b/css/css-position/sticky/position-sticky-stacking-context-002.html @@ -0,0 +1,38 @@ + + + + + CSS Positioned Layout Test: an element with 'position: sticky' creates a stacking context + + + + + + + + +

Test passes if there is a filled green square and no red. + +

+ +
diff --git a/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html b/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html new file mode 100644 index 00000000000000..7f90c2674f0faa --- /dev/null +++ b/css/css-position/sticky/reference/position-sticky-fixed-ancestor-002-ref.html @@ -0,0 +1,18 @@ + + + + + CSS Reference File + + + +
PASS
From 1f3a46261daaa3784c21ca6559e7c33a52a1e1df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Sun, 3 Apr 2022 13:42:01 -0400 Subject: [PATCH 2/6] Improving position-sticky-fixed-ancestor-002/003 tests --- .../sticky/position-sticky-fixed-ancestor-002.html | 3 ++- .../sticky/position-sticky-fixed-ancestor-003.html | 3 ++- .../reference/position-sticky-fixed-ancestor-002-ref.html | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/css/css-position/sticky/position-sticky-fixed-ancestor-002.html b/css/css-position/sticky/position-sticky-fixed-ancestor-002.html index e8b35cb6a03e08..dc3c383ea5e9c8 100644 --- a/css/css-position/sticky/position-sticky-fixed-ancestor-002.html +++ b/css/css-position/sticky/position-sticky-fixed-ancestor-002.html @@ -4,10 +4,11 @@ CSS Positioned Layout Test: a sticky element inside a fixed ancestor + - + - - - - - -

Test passes if there is a filled green square and no horizontal scrollbar. - -

- -
- -
- - diff --git a/css/css-position/sticky/position-sticky-scrolled-remove-sibling.html b/css/css-position/sticky/position-sticky-scrolled-remove-sibling.html index f2cf8a98b30a2c..845454e1b3d6c5 100644 --- a/css/css-position/sticky/position-sticky-scrolled-remove-sibling.html +++ b/css/css-position/sticky/position-sticky-scrolled-remove-sibling.html @@ -1,21 +1,99 @@ - - -

Test passes if there is a filled green square, and no scrollbars

-
-
-
-
- - - + + + + CSS Positioned Layout Test: element with 'position: sticky' and removing a sibling in the vertical axis and in the horizontal axis + + + + + + + + + + + + + + +

Test passes if there is a filled green square and no scrollbar. + +

+ +
+ +
+ +
+ + +
+ +
+ +
+ + + From fe4b47894c7343fe2ec91c80ab76eaa0c06fa0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Sun, 3 Apr 2022 16:36:20 -0400 Subject: [PATCH 4/6] Improved position-sticky-stacking-context-002.html according to review comments --- .../position-sticky-stacking-context-002.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/css/css-position/sticky/position-sticky-stacking-context-002.html b/css/css-position/sticky/position-sticky-stacking-context-002.html index 938cd8c99076dd..c8b72ae009ca08 100644 --- a/css/css-position/sticky/position-sticky-stacking-context-002.html +++ b/css/css-position/sticky/position-sticky-stacking-context-002.html @@ -7,7 +7,7 @@ - +

Test passes if there is a filled green square and no red. @@ -36,3 +45,5 @@

+ +
From f76f1e06cd9586f7b392fce1e8d3b4dc82c77e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Sun, 3 Apr 2022 16:51:31 -0400 Subject: [PATCH 5/6] Tweaked position-sticky-stacking-context-002.html --- .../sticky/position-sticky-stacking-context-002.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/css/css-position/sticky/position-sticky-stacking-context-002.html b/css/css-position/sticky/position-sticky-stacking-context-002.html index c8b72ae009ca08..03d7db546a2d83 100644 --- a/css/css-position/sticky/position-sticky-stacking-context-002.html +++ b/css/css-position/sticky/position-sticky-stacking-context-002.html @@ -4,10 +4,11 @@ CSS Positioned Layout Test: an element with 'position: sticky' creates a stacking context + - + From 9e927411e51116200d803f6b960c743505ae0b21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Sat, 7 May 2022 10:56:14 -0400 Subject: [PATCH 6/6] Adjusted position-sticky-stacking-context-002 according to review comments --- .../sticky/position-sticky-stacking-context-002.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/css/css-position/sticky/position-sticky-stacking-context-002.html b/css/css-position/sticky/position-sticky-stacking-context-002.html index 03d7db546a2d83..1cc162880a3755 100644 --- a/css/css-position/sticky/position-sticky-stacking-context-002.html +++ b/css/css-position/sticky/position-sticky-stacking-context-002.html @@ -8,7 +8,7 @@ - +