summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/widows-orphans-011.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/css-break/widows-orphans-011.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-break/widows-orphans-011.html')
-rw-r--r--testing/web-platform/tests/css/css-break/widows-orphans-011.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-break/widows-orphans-011.html b/testing/web-platform/tests/css/css-break/widows-orphans-011.html
new file mode 100644
index 0000000000..c3741a977a
--- /dev/null
+++ b/testing/web-platform/tests/css/css-break/widows-orphans-011.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+
+ <meta charset="UTF-8">
+
+ <title>CSS Fragmentation level 3 Test: 'orphans', 'widows' and content distribution in columns</title>
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
+ <link rel="help" href="https://www.w3.org/TR/css-break-3/#widows-orphans">
+ <link rel="match" href="reference/widows-orphans-011-ref.html">
+
+ <!--
+ Date created: November 26th 2020
+ Last modified: December 6th 2020
+ -->
+
+ <!--
+
+ Bug 137367: Implement orphans and widows
+ https://bugzilla.mozilla.org/show_bug.cgi?id=137367
+
+ -->
+
+ <meta name="assert" content="When column boxes are filled sequentially, their content should be distributed and fragmented in accordance with the 'orphans' and the 'widows' declarations. In the test, since the 3rd column box was going to get only 2 line boxes, then a class B break point should occur between '8' and the '9' so that there is a minimum of 6 line boxes at the top of the 3rd column box.">
+
+ <style>
+ div
+ {
+ border: orange solid 4px;
+ font-size: 20px;
+ line-height: 1.3; /* computes to 26px */
+ height: 156px; /* Therefore, exactly 6 line boxes */
+ margin-bottom: 1em;
+ padding: 0.5em; /* computes to 10px */
+ width: 460px;
+
+ columns: 4 auto;
+
+ column-fill: auto;
+
+ column-gap: 1em; /* computes to 20px */
+
+ column-rule: blue solid 4px;
+ }
+
+ div#test
+ {
+ orphans: 2;
+ widows: 6;
+ }
+
+ div#reference
+ {
+ orphans: 1;
+ widows: 1;
+ }
+ </style>
+
+ <p>Test passes if the numbers inside both orange-bordered rectangles are <strong>distributed identically</strong>.
+
+ <div id="test">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14</div>
+
+ <div id="reference">1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br><br><br><br><br>9<br>10<br>11<br>12<br>13<br>14</div>
+ <!-- Same as div#test except 4 extra br here ^ -->