From 975cd0014dfc60effbd67cc2f35193306a48b22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rard=20Talbot?= Date: Thu, 18 Apr 2019 11:59:00 +0000 Subject: [PATCH] =?UTF-8?q?Bug=201541659=20[wpt=20PR=2016145]=20-=20Adding?= =?UTF-8?q?=205=20new=20contain-content-*=20tests,=201=20contain-strict=20?= =?UTF-8?q?test=20and=202=20ref=E2=80=A6,=20a=3Dtestonly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic update from web-platform-tests Adding 5 new contain-content-* tests, 1 contain-strict test and 2 ref… (#16145) Adding contain-content-001.html contain-content-002.html contain-content-003.html contain-content-004.html contain-content-011.html contain-strict-011.html reference/contain-content-011-ref.html reference/contain-strict-011-ref.html where contain-content-011 test and contain-strict-011 test explicitly verify that **'contain: strict' and 'contain: content' do not turn on style containment** -- wpt-commits: 3547167a5284e011145013c7705ac7cea8d01c91 wpt-pr: 16145 --- .../css/css-contain/contain-content-001.html | 43 +++++++++ .../css/css-contain/contain-content-002.html | 56 +++++++++++ .../css/css-contain/contain-content-003.html | 53 +++++++++++ .../css/css-contain/contain-content-004.html | 63 +++++++++++++ .../css/css-contain/contain-content-011.html | 94 +++++++++++++++++++ .../css/css-contain/contain-strict-011.html | 64 +++++++++++++ .../reference/contain-content-011-ref.html | 27 ++++++ .../reference/contain-strict-011-ref.html | 23 +++++ 8 files changed, 423 insertions(+) create mode 100644 testing/web-platform/tests/css/css-contain/contain-content-001.html create mode 100644 testing/web-platform/tests/css/css-contain/contain-content-002.html create mode 100644 testing/web-platform/tests/css/css-contain/contain-content-003.html create mode 100644 testing/web-platform/tests/css/css-contain/contain-content-004.html create mode 100644 testing/web-platform/tests/css/css-contain/contain-content-011.html create mode 100644 testing/web-platform/tests/css/css-contain/contain-strict-011.html create mode 100644 testing/web-platform/tests/css/css-contain/reference/contain-content-011-ref.html create mode 100644 testing/web-platform/tests/css/css-contain/reference/contain-strict-011-ref.html diff --git a/testing/web-platform/tests/css/css-contain/contain-content-001.html b/testing/web-platform/tests/css/css-contain/contain-content-001.html new file mode 100644 index 000000000000..649bf54df5b6 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-content-001.html @@ -0,0 +1,43 @@ + + + + + CSS Containment Test: a block with 'contain: content' alongside a float + + + + + + + + + + +

Test passes if the orange rectangle and blue rectangle do not overlap. + +

Some text in a blue rectangle.
+ +
Some text in an orange rectangle. Some text in an orange rectangle. Some text in an orange rectangle.
diff --git a/testing/web-platform/tests/css/css-contain/contain-content-002.html b/testing/web-platform/tests/css/css-contain/contain-content-002.html new file mode 100644 index 000000000000..d18ba3c4dd4b --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-content-002.html @@ -0,0 +1,56 @@ + + + + + CSS Containment Test: 'contain: content' and margin collapsing + + + + + + + + + + +

Test passes if there are 5 horizontal stripes across the page in this order (from top to bottom): an orange stripe, a blue stripe, a bright green stripe, a blue stripe and then an orange stripe. + +

+ +
+ +
+ +
+ +
+ +
+ +
diff --git a/testing/web-platform/tests/css/css-contain/contain-content-003.html b/testing/web-platform/tests/css/css-contain/contain-content-003.html new file mode 100644 index 000000000000..bb421c017322 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-content-003.html @@ -0,0 +1,53 @@ + + + + + CSS Containment Test: element with 'contain: content' and absolutely positioned descendants + + + + + + + + + + + + +

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

+
+
+
diff --git a/testing/web-platform/tests/css/css-contain/contain-content-004.html b/testing/web-platform/tests/css/css-contain/contain-content-004.html new file mode 100644 index 000000000000..37b2daf845ad --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-content-004.html @@ -0,0 +1,63 @@ + + + + + CSS Containment Test: 'contain: content' applies to 'table-cell' elements + + + + + + + + + + +

Test passes if there is the word PASS and if there is no red. + + + +
   + +
 FAIL
PASS
+ +
diff --git a/testing/web-platform/tests/css/css-contain/contain-content-011.html b/testing/web-platform/tests/css/css-contain/contain-content-011.html new file mode 100644 index 000000000000..1646413fee73 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-content-011.html @@ -0,0 +1,94 @@ + + + + + CSS Containment Test: 'contain: content' does not turn on style containment + + + + + + + + + + + + +

Test passes if there is a filled green square, no red and the number 25. + +

+
+
+
+ +
diff --git a/testing/web-platform/tests/css/css-contain/contain-strict-011.html b/testing/web-platform/tests/css/css-contain/contain-strict-011.html new file mode 100644 index 000000000000..a3c506b1baa5 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/contain-strict-011.html @@ -0,0 +1,64 @@ + + + + + CSS Containment Test: 'contain: strict' does not turn on style containment + + + + + + + + + + + + +
FAIL1 FAIL2 FAIL3
+ +

Test passes if there is the number 26. + +

diff --git a/testing/web-platform/tests/css/css-contain/reference/contain-content-011-ref.html b/testing/web-platform/tests/css/css-contain/reference/contain-content-011-ref.html new file mode 100644 index 000000000000..21043b083c89 --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/reference/contain-content-011-ref.html @@ -0,0 +1,27 @@ + + + + + CSS Reference Test + + + + + +

Test passes if there is a filled green square, no red and the number 25. + +

+ +
25
diff --git a/testing/web-platform/tests/css/css-contain/reference/contain-strict-011-ref.html b/testing/web-platform/tests/css/css-contain/reference/contain-strict-011-ref.html new file mode 100644 index 000000000000..3e69ee5ab8da --- /dev/null +++ b/testing/web-platform/tests/css/css-contain/reference/contain-strict-011-ref.html @@ -0,0 +1,23 @@ + + + + + CSS Reference Test + + + + + +

Test passes if there is the number 26. + +

26