From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../tests/css/CSS2/page-box/at-page-rule-001.xht | 46 ++++++++ .../tests/css/CSS2/page-box/at-page-rule-002-a.xht | 22 ++++ .../tests/css/CSS2/page-box/at-page-rule-002-b.xht | 21 ++++ .../tests/css/CSS2/page-box/at-page-rule-002-c.xht | 25 ++++ .../css/CSS2/page-box/first-page-selectors-001.xht | 32 ++++++ .../css/CSS2/page-box/first-page-selectors-002.xht | 32 ++++++ .../css/CSS2/page-box/first-page-selectors-003.xht | 33 ++++++ .../css/CSS2/page-box/first-page-selectors-004.xht | 33 ++++++ .../tests/css/CSS2/page-box/page-box-000.xht | 31 +++++ .../tests/css/CSS2/page-box/page-container-000.xht | 23 ++++ .../tests/css/CSS2/page-box/page-container-001.xht | 58 ++++++++++ .../tests/css/CSS2/page-box/page-container-002.xht | 26 +++++ .../tests/css/CSS2/page-box/page-container-003.xht | 39 +++++++ .../tests/css/CSS2/page-box/page-container-004.xht | 29 +++++ .../tests/css/CSS2/page-box/page-container-005.xht | 126 +++++++++++++++++++++ .../tests/css/CSS2/page-box/page-container-006.xht | 31 +++++ .../tests/css/CSS2/page-box/page-container-007.xht | 35 ++++++ .../tests/css/CSS2/page-box/page-container-008.xht | 23 ++++ .../tests/css/CSS2/page-box/page-container-009.xht | 33 ++++++ .../tests/css/CSS2/page-box/page-container-010.xht | 49 ++++++++ .../tests/css/CSS2/page-box/page-container-011.xht | 80 +++++++++++++ .../tests/css/CSS2/page-box/page-grammar-001.xht | 37 ++++++ .../tests/css/CSS2/page-box/page-grammar-002.xht | 37 ++++++ .../tests/css/CSS2/page-box/page-margin-000.xht | 22 ++++ .../tests/css/CSS2/page-box/page-margin-001.xht | 23 ++++ .../tests/css/CSS2/page-box/page-margin-002.xht | 23 ++++ .../tests/css/CSS2/page-box/page-props-100-a.xht | 43 +++++++ .../tests/css/CSS2/page-box/page-props-100-b.xht | 43 +++++++ .../tests/css/CSS2/page-box/page-props-101.xht | 50 ++++++++ .../tests/css/CSS2/page-box/page-props-102.xht | 55 +++++++++ .../tests/css/CSS2/page-box/page-props-103.xht | 53 +++++++++ .../tests/css/CSS2/page-box/page-selectors-001.xht | 33 ++++++ .../tests/css/CSS2/page-box/page-selectors-002.xht | 45 ++++++++ .../tests/css/CSS2/page-box/page-selectors-003.xht | 41 +++++++ .../tests/css/CSS2/page-box/page-selectors-004.xht | 30 +++++ .../tests/css/CSS2/page-box/page-selectors-006.xht | 33 ++++++ .../tests/css/CSS2/page-box/support/README | 28 +++++ .../tests/css/CSS2/page-box/support/blue15x15.png | Bin 0 -> 185 bytes .../tests/css/CSS2/page-box/support/cat.png | Bin 0 -> 1883 bytes .../tests/css/CSS2/page-box/support/diamond.png | Bin 0 -> 188 bytes .../tests/css/CSS2/page-box/support/green15x15.png | Bin 0 -> 170 bytes .../CSS2/page-box/support/page-container-007.png | Bin 0 -> 5722 bytes .../tests/css/CSS2/page-box/support/ring.png | Bin 0 -> 715 bytes .../tests/css/CSS2/page-box/support/w3c_home.png | Bin 0 -> 1936 bytes 44 files changed, 1423 insertions(+) create mode 100644 testing/web-platform/tests/css/CSS2/page-box/at-page-rule-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-a.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-b.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-c.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-002.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-003.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-004.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-box-000.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-000.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-002.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-003.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-004.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-005.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-006.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-007.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-008.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-009.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-010.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-container-011.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-grammar-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-grammar-002.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-margin-000.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-margin-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-margin-002.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-props-100-a.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-props-100-b.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-props-101.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-props-102.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-props-103.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-selectors-001.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-selectors-002.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-selectors-003.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-selectors-004.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/page-selectors-006.xht create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/README create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/blue15x15.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/cat.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/diamond.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/green15x15.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/page-container-007.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/ring.png create mode 100644 testing/web-platform/tests/css/CSS2/page-box/support/w3c_home.png (limited to 'testing/web-platform/tests/css/CSS2/page-box') diff --git a/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-001.xht b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-001.xht new file mode 100644 index 0000000000..e43015d3f0 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-001.xht @@ -0,0 +1,46 @@ + + + + CSS Test: Ignoring at-rules inside declaration blocks + + + + + + + +

When printed the top left corner of this box must be in + the exact center of this page.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-a.xht b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-a.xht new file mode 100644 index 0000000000..d1c8816c7a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-a.xht @@ -0,0 +1,22 @@ + + + + CSS Test: @page margins on top and right using percentages + + + + + + + + + +
When printed, this paragraph must appear inside a grey box. The box should appear in the lower-left quadrant of the page. The top edge of the box should be exactly halfway down the page, and the right edge of the box should be exactly half way across the page (You can test this by folding the page in half).
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-b.xht b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-b.xht new file mode 100644 index 0000000000..dc6ebcbbea --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-b.xht @@ -0,0 +1,21 @@ + + + + CSS Test: @page margins shorthand using fixed physical units + + + + + + + + + +
When printed, this paragraph must appear inside a grey box. There should be a three centimeter margin between the grey edge and paper edge on all sides.
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-c.xht b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-c.xht new file mode 100644 index 0000000000..f3f092d4f2 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/at-page-rule-002-c.xht @@ -0,0 +1,25 @@ + + + + CSS Test: Page Margins: bottom and left (percent) + + + + + + + + + + + +
When printed, this paragraph appears inside a grey box in the upper-right quadrant of the page. The bottom edge of the box should be exactly 1/2 way down the page, and the left edge of the box should be exactly half way across the page (You can test this by folding the page in half). +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-001.xht b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-001.xht new file mode 100644 index 0000000000..bf5d466399 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-001.xht @@ -0,0 +1,32 @@ + + + + CSS Test: Page Selectors - First Page in LTR + + + + + + + +

When printed the top left corner of this box must be in + the exact center of this page.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-002.xht b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-002.xht new file mode 100644 index 0000000000..db9d060928 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-002.xht @@ -0,0 +1,32 @@ + + + + CSS Test: Page Selectors - First Page in RTL + + + + + + + +

When printed the top left corner of this box must be in + the exact center of this page.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-003.xht b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-003.xht new file mode 100644 index 0000000000..229ce07975 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-003.xht @@ -0,0 +1,33 @@ + + + + CSS Test: Page Selectors - First Page in LTR Forced :left + + + + + + + +

When printed the top left corner of this box must be in + the exact center of this page.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-004.xht b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-004.xht new file mode 100644 index 0000000000..5b5b3495ab --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/first-page-selectors-004.xht @@ -0,0 +1,33 @@ + + + + CSS Test: Page Selectors - First Page in RTL Forced :right + + + + + + + +

When printed the top left corner of this box must be in + the exact center of this page.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-box-000.xht b/testing/web-platform/tests/css/CSS2/page-box/page-box-000.xht new file mode 100644 index 0000000000..2fe791649f --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-box-000.xht @@ -0,0 +1,31 @@ + + + + CSS Test: Page bleed + + + + + + + + +
+ This test produces one page on paged media. When viewed in a print preview or printed on a printer supporting "full bleed" + (also known as "edge-to-edge" or "borderless" printing), the entire surface of the medium is a pale cyan. There is no white showing around the edges. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-000.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-000.xht new file mode 100644 index 0000000000..b5f647ce60 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-000.xht @@ -0,0 +1,23 @@ + + + + CSS Test: Paged Media root container + + + + + + + + + +

There must be a pale pink background covering this page up to the two centimeter margin.

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-001.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-001.xht new file mode 100644 index 0000000000..00976ee76b --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-001.xht @@ -0,0 +1,58 @@ + + + + CSS Test: paged media abspos containing block + + + + + + + + +

There must be three boxes containing descriptive text on this page.

+
This blue box must be in the upper-left corner of the page, one half inch below the top of the page and one half inch from the left edge of the page.
+
This fuchsia box must be in the lower right corner, one half inch from the right and bottom edges of the page.
+
This yellow box must be centered on the page.
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-002.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-002.xht new file mode 100644 index 0000000000..cbafd59628 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-002.xht @@ -0,0 +1,26 @@ + + + + CSS Test: paged media root percent height + + + + + + + + + +
This page must have a blue border edging the top half of the page area. (The bottom border must be halfway down the page.) +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-003.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-003.xht new file mode 100644 index 0000000000..98aacb6248 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-003.xht @@ -0,0 +1,39 @@ + + + + CSS Test: paged media position fixed + + + + + + + + + +
+ +

This test produces three pages of output on paged media.

+

The W3C logo appears in the top left corner of each page.

+

Page two.

+

Page three.

+
+ + + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-004.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-004.xht new file mode 100644 index 0000000000..3b4d2a04dd --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-004.xht @@ -0,0 +1,29 @@ + + + + CSS Test: Paged Media root container (float) + + + + + + + + + +

This test produces two pages of output.

+

The text on this page has a left, top, and right purple border which should be entirely on the right + half of the page.  (There should be no bottom border.)

+
The text on this page has a left, bottom, and right purple border which should be entirely on the right + half of the page.  (There should be no top border.)
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-005.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-005.xht new file mode 100644 index 0000000000..803f8ace98 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-005.xht @@ -0,0 +1,126 @@ + + + + CSS Test: Paged content + + + + + + + + +

The contents of this document include headings, + "lorem ipsum" paragraphs with a background and a border, a list with + bullets, two images, and a table. This test passes if all these items + appear within an orange border which spans the pages. +

+

Lorem Ipsum Text

+
+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus + hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, + dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet + viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam + mollis. Ut justo. Suspendisse potenti.

+

Sed egestas, ante et vulputate volutpat, eros pede semper est, vitae + luctus metus libero eu augue. Morbi purus libero, faucibus adipiscing, + commodo quis, gravida id, est. Sed lectus. Praesent elementum hendrerit + tortor. Sed semper lorem at felis. Vestibulum volutpat, lacus a ultrices + sagittis, mi neque euismod dui, eu pulvinar nunc sapien ornare nisl. + Phasellus pede arcu, dapibus eu, fermentum et, dapibus sed, urna.

+

Morbi interdum mollis sapien. Sed ac risus. Phasellus lacinia, magna a + ullamcorper laoreet, lectus arcu pulvinar risus, vitae facilisis libero + dolor a purus. Sed vel lacus. Mauris nibh felis, adipiscing varius, + adipiscing in, lacinia vel, tellus. Suspendisse ac urna. Etiam pellentesque + mauris ut lectus. Nunc tellus ante, mattis eget, gravida vitae, ultricies + ac, leo. Integer leo pede, ornare a, lacinia eu, vulputate vel, nisl.

+

Suspendisse mauris. Fusce accumsan mollis eros. Pellentesque a diam sit + amet mi ullamcorper vehicula. Integer adipiscing risus a sem. Nullam quis + massa sit amet nibh viverra malesuada. Nunc sem lacus, accumsan quis, + faucibus non, congue vel, arcu. Ut scelerisque hendrerit tellus. Integer + sagittis. Vivamus a mauris eget arcu gravida tristique. Nunc iaculis mi in + ante. Vivamus imperdiet nibh feugiat est.

+

Ut convallis, sem sit amet interdum consectetuer, odio augue aliquam leo, + nec dapibus tortor nibh sed augue. Integer eu magna sit amet metus fermentum + posuere. Morbi sit amet nulla sed dolor elementum imperdiet. Quisque + fermentum. Cum sociis natoque penatibus et magnis dis parturient montes, + nascetur ridiculus mus. Pellentesque adipiscing eros ut libero. Ut + condimentum mi vel tellus. Suspendisse laoreet. Fusce ut est sed dolor + gravida convallis. Morbi vitae ante. Vivamus ultrices luctus nunc. + Suspendisse et dolor. Etiam dignissim. Proin malesuada adipiscing lacus. + Donec metus. Curabitur gravida.

+
+
+

Unordered List

+
    +
  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • +
  • Aliquam tincidunt mauris eu risus.
  • +
  • Vestibulum auctor dapibus neque.
  • +
  • Nunc dignissim risus id metus.
  • +
  • Cras ornare tristique elit.
  • +
  • Vivamus vestibulum nulla nec ante.
  • +
  • Praesent placerat risus quis eros.
  • +
  • Fusce pellentesque suscipit nibh.
  • +
  • Integer vitae libero ac risus egestas placerat.
  • +
  • Vestibulum commodo felis quis tortor.
  • +
  • Ut aliquam sollicitudin leo.
  • +
  • Cras iaculis ultricies nulla.
  • +
  • Donec quis dui at dolor tempor interdum.
  • +
  • Vivamus molestie gravida turpis.
  • +
  • Fusce lobortis lorem at ipsum semper sagittis.
  • +
  • Nam convallis pellentesque nisl.
  • +
  • Integer malesuada commodo nulla.
  • +
+
+

Floated images

+
+ There is an maroon-boxed cat to the left + FAIL: missing imageand + a teal-boxed cat to the right + FAIL: missing image of this paragraph. + +
+

Table

+ + + + + + + +
Header1Header2Header3Header4
Data 100Data 200Data 300Data 400
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-006.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-006.xht new file mode 100644 index 0000000000..eac52587f5 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-006.xht @@ -0,0 +1,31 @@ + + + + CSS Test: Paged media - percent on root + + + + + + + + +
This paragraph and the dummy text below are entirely on the left half of the page. +
+

dummy text dummy text dummy text dummy text dummy text dummy text dummy + text dummy text dummy text dummy text dummy text dummy text dummy text dummy + text dummy text dummy text dummy text dummy text dummy text dummy text dummy + text dummy text dummy text dummy text dummy text dummy text dummy text dummy + text. +

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-007.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-007.xht new file mode 100644 index 0000000000..1df3663e73 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-007.xht @@ -0,0 +1,35 @@ + + + + CSS Test: Fixed content outside the page area + + + + + + + +
+ FAIL: image failed to load +

When displayed on paged media, this test produces two pages.

+

A cat must appear in the upper right corner of each page and no red + must be visible.

+
+
+ This text appears on page two. The cat image must be exactly the same + as on page 1. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-008.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-008.xht new file mode 100644 index 0000000000..2bf833d725 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-008.xht @@ -0,0 +1,23 @@ + + + + CSS Test: Paged Media Canvas Background + + + + + + + + +
+

There is a white margin around the edge of this page. The top and bottom margins are of equal height, and the right and left margins are of equal width. The rest of the page, including this text, has a pale green background.

+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-009.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-009.xht new file mode 100644 index 0000000000..f31fafabf8 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-009.xht @@ -0,0 +1,33 @@ + + + + CSS Test: Paged Media Body Background + + + + + + + + +
+

There is a white margin around the edge of this page. The top and + bottom margins are of equal height, and the right and left margins are of + equal width. The rest of the page, + including this text, has a pale green background. +

+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-010.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-010.xht new file mode 100644 index 0000000000..b0add32bd5 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-010.xht @@ -0,0 +1,49 @@ + + + + CSS Test: Paged Media Height (percent) + + + + + + + + + + +
+

+ This test produces one page on paged media. +

+

+ There is a horizontal blue line, half way down the page. There is no red on + the page.

+
+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-container-011.xht b/testing/web-platform/tests/css/CSS2/page-box/page-container-011.xht new file mode 100644 index 0000000000..04e03e1394 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-container-011.xht @@ -0,0 +1,80 @@ + + + + CSS Test: Paged Media: Relatively Positioned Pages + + + + + + + +
+
+ This test produces two pages on paged media. +
+
+ This page has a light yellow background which is surrounded by a blue + border. +
+

+

+

+

+
+
+
+ This is at the top of the second page. + There is a horizontal blue bar near the bottom of this page. +
+

+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-grammar-001.xht b/testing/web-platform/tests/css/CSS2/page-box/page-grammar-001.xht new file mode 100644 index 0000000000..cf7e747542 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-grammar-001.xht @@ -0,0 +1,37 @@ + + + + CSS Test: @page grammar: white space allowed around pseudo + + + + + + + + + +

This test produces two pages of output on paged media. This box must be entirely on the right half of the page. +

+

This box must be on a new page and entirely on the left half of the page. +

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-grammar-002.xht b/testing/web-platform/tests/css/CSS2/page-box/page-grammar-002.xht new file mode 100644 index 0000000000..a65ab7420a --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-grammar-002.xht @@ -0,0 +1,37 @@ + + + + CSS Test: @page grammar: white space not required around pseudo + + + + + + + + + +

This test produces two pages of output on paged media. This box must be entirely on the right half of the page. +

+

This box must be on a new page and entirely on the left half of the page. +

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-margin-000.xht b/testing/web-platform/tests/css/CSS2/page-box/page-margin-000.xht new file mode 100644 index 0000000000..7adc9db306 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-margin-000.xht @@ -0,0 +1,22 @@ + + + + CSS Test: @page margins shorthand using fixed physical units + + + + + + + + + + +
This paragraph must appear inside a grey box. There should be an 0.5 inch margin between the grey edge and paper edge on all sides.
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-margin-001.xht b/testing/web-platform/tests/css/CSS2/page-box/page-margin-001.xht new file mode 100644 index 0000000000..c0824b008d --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-margin-001.xht @@ -0,0 +1,23 @@ + + + + CSS Test: @page margins on top and right using percentages + + + + + + + + + + +
This paragraph must appear inside a grey box. The box should appear in the lower-left quadrant of the page. The top edge of the box should be exactly halfway down the page, and the right edge of the box should be exactly half way across the page (You can test this by folding the page in half).
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-margin-002.xht b/testing/web-platform/tests/css/CSS2/page-box/page-margin-002.xht new file mode 100644 index 0000000000..b7d22e82db --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-margin-002.xht @@ -0,0 +1,23 @@ + + + + CSS Test: @page margins on bottom and left using percentages + + + + + + + + + + +
This paragraph must appear inside a grey box. The box should appear in the upper-right quadrant of the page. The bottom edge of the box should be exactly 1/2 way up the page, and the left edge of the box should be exactly half way across the page (You can test this by folding the page in half).
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-props-100-a.xht b/testing/web-platform/tests/css/CSS2/page-box/page-props-100-a.xht new file mode 100644 index 0000000000..ab24cd5322 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-props-100-a.xht @@ -0,0 +1,43 @@ + + + + CSS Test: Unqualified Page Contexts (first, right) + + + + + + + + + +

+ This test produces four pages on paged media. +
+
+ The text on this page is entirely on the right half of the page. +

+

+ This text on page two begins near the left edge of the page. +

+

+ Ths text on page three is entirely on the right half of the page. +

+

+ This text on page four begins near the left edge of the page. +

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-props-100-b.xht b/testing/web-platform/tests/css/CSS2/page-box/page-props-100-b.xht new file mode 100644 index 0000000000..efcfe543ed --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-props-100-b.xht @@ -0,0 +1,43 @@ + + + + CSS Test: Unqualified Page Contexts (first, left) + + + + + + + + + +

+ This test produces four pages on paged media. +
+
+ The text on this page is entirely on the right half of the page. +

+

+ This text on page two is also entirely on the right half of the page. +

+

+ This text on page three begins near the left edge of the page. +

+

+ This text on page four is entirely on the right half of the page. +

+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-props-101.xht b/testing/web-platform/tests/css/CSS2/page-box/page-props-101.xht new file mode 100644 index 0000000000..ed76c091ff --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-props-101.xht @@ -0,0 +1,50 @@ + + + + CSS Test: Right and Left Pages (page area equal) + + + + + + + + +
+ This test produces three pages on paged media. +
+
+ This page has a wide left margin and a narrow right margin. This content is completely enclosed by a blue border and has a pale blue background. A page break follows. +
+
+ This page has a wide right margin and a narrow left margin. This content is completely enclosed by a blue border and has a pale blue background. A page break follows. +
+
+ This page again has a wide left margin and narrow right margin. This content has a blue border on all sides and a pale blue background. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-props-102.xht b/testing/web-platform/tests/css/CSS2/page-box/page-props-102.xht new file mode 100644 index 0000000000..042052db52 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-props-102.xht @@ -0,0 +1,55 @@ + + + + CSS Test: Right and Left Pages (page area equal) + + + + + + + +
+ This test produces three pages on paged media. +
+
+ This page should have typical right and left margins. This content is completely enclosed by a blue border and has a pale blue background. A page break follows. +
+
+ This content should be entirely on the right side of the page (but might instead + have margins like the first page). It is completely enclosed by a blue border and has a pale blue background. A page break follows. +
+
+ This page should have a wide right margin and narrow left margin (but might + instead have margins like the first page). This content has a blue border on all sides and a pale blue background. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-props-103.xht b/testing/web-platform/tests/css/CSS2/page-box/page-props-103.xht new file mode 100644 index 0000000000..6a0af74bf5 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-props-103.xht @@ -0,0 +1,53 @@ + + + + CSS Test: Right and Left Pages (page area equal) + + + + + + + + +
+
+ This test produces two pages on paged media. +
+
+ There is a horizontal blue line about one third of the way down the page. +
+

+
+
+
+ There is a horizontal blue line near the bottom of the page. +
+

+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-selectors-001.xht b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-001.xht new file mode 100644 index 0000000000..29d951625c --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-001.xht @@ -0,0 +1,33 @@ + + + + CSS Test: page selector is optional in @page rules + + + + + + + + +
+

+ This text produces two pages on paged media. + This text begins about two inches down from the top of the page. +

+

This text begins about one half inch down from the top of the page.

+
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-selectors-002.xht b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-002.xht new file mode 100644 index 0000000000..21c79b5972 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-002.xht @@ -0,0 +1,45 @@ + + + + CSS Test: Page Selectors: first, right, and left pages + + + + + + + + +
+ This test produces 5 pages on paged media. On this first page, all content is + within the bottom right quadrant of the page. +
+
+ On this second page, all content is on the left side of the page. +
+
+ On this third page, all content is on the right half of the page. +
+
+ On this fourth page, all content is on the left side of the page. +
+
+ On this fifth and last page, all content is on the right side of the page. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-selectors-003.xht b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-003.xht new file mode 100644 index 0000000000..3bcb2eb97e --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-003.xht @@ -0,0 +1,41 @@ + + + + CSS Test: Page cascade (right/left) + + + + + + + + +
+ This test produces three pages on paged media.
+ All text on this page is inside a box with a blue border which is entirely on the right side of the page. +
+
+ This text is inside a box with a blue border which is entirely on the left side of the page. +
+
+ This text is again inside a box with a blue border which is entirely on the right side of the page. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-selectors-004.xht b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-004.xht new file mode 100644 index 0000000000..f2e08efbde --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-004.xht @@ -0,0 +1,30 @@ + + + + CSS Test: Page cascade (first trumps right) + + + + + + + + +
+ This test produces only this page, containing only this paragraph, which is entirely on the left side of the page. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/page-selectors-006.xht b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-006.xht new file mode 100644 index 0000000000..57b009c0a0 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/page-selectors-006.xht @@ -0,0 +1,33 @@ + + + + CSS Test: Page cascade (first trumps no pseudo-class) + + + + + + + + +
+ This test produces just this one page. The blue bar above this text is 2 inches below the top edge of the medium. The orange bar to the right is 2 inches from the right edge of the medium. +
+ + diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/README b/testing/web-platform/tests/css/CSS2/page-box/support/README new file mode 100644 index 0000000000..2e5f2ad073 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/page-box/support/README @@ -0,0 +1,28 @@ +CSS Global Support Directory +============================ + +This directory contains common support files (such as images and external +style sheets). These are sync'ed into the support directories of all our +test suites. If you have test-suite-specific support files, please add +them to the appropriate test-suite-specific support/ directory. + +If you add to a support/ directory, please run the tools/supportprop.py +script from the top of the repository to cascade support files into the +lower-level support directories. + +Description of the Common Support File Collection +------------------------------------------------- + +The 1x1-* images are all exactly one pixel. + +The swatch-* images all use 15x15 cells. + +The square-* images all use 15x15 cells with one pixel borders. + +The pattern-* images use cells of various sizes: + + pattern-grg-rgr-grg.png 20x20 + pattern-rgr-grg-rgr.png 20x20 + pattern-tr.png 15x15 + pattern-grg-rrg-rgg.png 15x15 + diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/blue15x15.png b/testing/web-platform/tests/css/CSS2/page-box/support/blue15x15.png new file mode 100644 index 0000000000..89de32fdb8 Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/blue15x15.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/cat.png b/testing/web-platform/tests/css/CSS2/page-box/support/cat.png new file mode 100644 index 0000000000..85dd732481 Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/cat.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/diamond.png b/testing/web-platform/tests/css/CSS2/page-box/support/diamond.png new file mode 100644 index 0000000000..51112efc7c Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/diamond.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/green15x15.png b/testing/web-platform/tests/css/CSS2/page-box/support/green15x15.png new file mode 100644 index 0000000000..51741584a0 Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/green15x15.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/page-container-007.png b/testing/web-platform/tests/css/CSS2/page-box/support/page-container-007.png new file mode 100644 index 0000000000..9f7ccdafda Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/page-container-007.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/ring.png b/testing/web-platform/tests/css/CSS2/page-box/support/ring.png new file mode 100644 index 0000000000..061bb94eba Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/ring.png differ diff --git a/testing/web-platform/tests/css/CSS2/page-box/support/w3c_home.png b/testing/web-platform/tests/css/CSS2/page-box/support/w3c_home.png new file mode 100644 index 0000000000..f70c2b0847 Binary files /dev/null and b/testing/web-platform/tests/css/CSS2/page-box/support/w3c_home.png differ -- cgit v1.2.3