Bug 242380 - Safari doesn't seem to respect orphans and widows to spec in multi-column
Summary: Safari doesn't seem to respect orphans and widows to spec in multi-column
Status: RESOLVED DUPLICATE of bug 219882
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2022-07-06 00:36 PDT by samj
Modified: 2022-07-12 19:47 PDT (History)
6 users (show)

See Also:


Attachments
safari-screenshot (979.84 KB, image/png)
2022-07-06 00:36 PDT, samj
no flags Details
chrome-screenshot (1015.99 KB, image/png)
2022-07-06 00:37 PDT, samj
no flags Details
rendering safari, firefox, chrome (195.44 KB, image/jpeg)
2022-07-12 19:31 PDT, Karl Dubost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description samj 2022-07-06 00:36:31 PDT
Created attachment 460708 [details]
safari-screenshot

Steps to reproduce the problem:
1. go to https://codepen.io/samanthaj/pen/poLjjVE
2. Make the browser window wide and short enough that box "3" fits but box "4" is pushed off the bottom

Problem Description:
With the browser window wide enough Safari should be putting 2 of each of the 6 boxes in a their own columns since according to the spec the default values of widows and orphans are both 2

See screenshots
Comment 1 samj 2022-07-06 00:37:27 PDT
Created attachment 460709 [details]
chrome-screenshot
Comment 2 samj 2022-07-06 00:42:45 PDT
It looks like Safari just doesn't have the correct defaults?

If I add

   widows: 2;
   orphans: 2;

it displays the same as Chrome. The spec shows the default values are 2

https://drafts.csswg.org/css-break/#widows-orphans
Comment 3 Karl Dubost 2022-07-12 19:31:23 PDT
Created attachment 460838 [details]
rendering safari, firefox, chrome

Firefox gets the same behavior than Firefox.
Chrome stacks the boxes.
Comment 4 Radar WebKit Bug Importer 2022-07-12 19:33:47 PDT
<rdar://problem/96924872>
Comment 5 Karl Dubost 2022-07-12 19:46:45 PDT
Thanks for the bug report with the tests!

default computed values:

# orphans

safari: auto (See https://bugs.webkit.org/show_bug.cgi?id=219882)
firefox: n/a (see https://bugzilla.mozilla.org/show_bug.cgi?id=137367)
chrome: 2

# widows

safari: auto (see https://bugs.webkit.org/show_bug.cgi?id=219882)
firefox: n/a (see https://bugzilla.mozilla.org/show_bug.cgi?id=137367)
chrome: 2



Tested in: 
Safari Technology Preview 16.0
Firefox Nightly 104.0a1
Google Chrome Canary 105.0.5176.0


This is probably a duplicate of https://bugs.webkit.org/show_bug.cgi?id=219882
Comment 6 Karl Dubost 2022-07-12 19:47:05 PDT

*** This bug has been marked as a duplicate of bug 219882 ***