Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Issue 1909233002: Spec-compliant parsing and initial values for 'orphans' and 'widows'. (Closed)

Created:
4 years, 8 months ago by mstensho (USE GERRIT)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, shans, rjwright, szager+layoutwatch_chromium.org, blink-reviews-style_chromium.org, zoltan1, blink-reviews-animation_chromium.org, blink-reviews-css, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, dcheng, dglazkov+blink, apavlov+blink_chromium.org, jchaffraix+rendering, darktears, blink-reviews, mstensho (USE GERRIT), rwlbuis, blink-reviews-layout_chromium.org, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Spec-compliant parsing and initial values for 'orphans' and 'widows'. The initial values for these properties should be '2', not 'auto'. 'auto' isn't even an allowed value in the spec. So remove support for that completely. FWIW: 'auto' used to mean pretty much the same as '1'. Quite a few tests have to be updated because of this change, typically because they assume that there are no orphans and widows requirements, meaning that there'd be no breaking restrictions between lines. In those cases, now that the initial value is '2', we need to set 'orphans' and 'widows' to '1' explicitly if we don't want any restrictions. There are also some non-layout tests that expect the initial value to be 'auto' or '1'. In those cases we need to just update the expectations to be '2' instead. BUG=473509 Committed: https://crrev.com/b25fd3116d7cb9366a24af711666fc63a27f91b4 Cr-Commit-Position: refs/heads/master@{#389061}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Some unit tests had non-conformant widphans assumptions too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -111 lines) Patch
M third_party/WebKit/LayoutTests/animations/interpolation/widows-interpolation.html View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/data-transfer-items-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/dragstart-contains-default-content-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/editing/pasteboard/onpaste-text-html-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-listing-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer-listing-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/events/ondrop-text-html-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/number/number-spinbutton-in-multi-column.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/range/slider-in-multi-column.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/select/listbox-in-multi-column.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/balance-line-overflow.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/basic-rtl.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/border-radius-clipped-layer.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/border-radius-clipped-layer-second-column.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/client-rects.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/client-rects-rtl.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/composited-opacity-2nd-and-3rd-column.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/composited-relpos-overlapping-will-change.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/composited-with-child-layer-in-next-column.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/composited-with-overflow-in-next-column.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/change-spanner-display.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-block-among-text-in-anonymous-wrapper.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-block-before-spanner.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-block-before-spanner-before-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-block-between-spanners.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-spanner-after-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-spanner-after-spanner-before-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-spanner-before-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/insert-spanner-into-content.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-and-insert-block-after-spanner.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-and-insert-block-before-spanner.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/remove-and-insert-block-between-spanners.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/spanner-after-content-becomes-regular-block.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/spanner-before-content-becomes-regular-block.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/dynamic/spanner-in-content-becomes-regular-block.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/fixedpos-child-becomes-static.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/float-big-line.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/float-truncation.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/hit-test-above-or-below.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/inner-multicol-in-second-column-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/line-pushed-down-by-float.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-3-multicols-fixed-height.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-auto-height.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-auto-height-extra-block-inbetween.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-auto-height-short-first-row.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-balanced-with-strut-before-first-line.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-balancing-with-line-at-exact-top.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-balancing-with-lines-and-space-left-in-previous-row.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/nested-inner-auto-height-outer-extra-space.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/newmulticol/fixed-height-fill-balance-2.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/orphaned-line-at-exact-top-of-column.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/orphans-relayout.html View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/overflow-across-columns.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/scrolling-overflow.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/shadow-breaking.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/abspos-containing-block-outside-spanner.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/adjacent-spanners.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/float.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/in-nested-multicol-with-soft-breaks-inside.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/invalid-spanner-in-abspos.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/relpos-spanner-with-abspos-child.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/spanner-inline-block.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/spanner-with-relpos-child.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/summary-split.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/span/two-rows-then-spanner-then-two-rows.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/composited-relpos-overlapping-will-change.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/float-big-line.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/float-truncation.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/composited-relpos-overlapping-will-change.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/float-big-line.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/float-truncation.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/multicol/widows-and-orphans.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/pagination/break-in-paged-overflow.html View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/multicol-with-block.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/printing/multicol.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/printing/print-media-recalc.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/css/getComputedStyle-listing-expected.txt View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSProperties.in View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 2 chunks +1 line, -10 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ColumnBalancer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 3 chunks +2 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareInheritedData.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareInheritedData.cpp View 3 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 1 2 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
mstensho (USE GERRIT)
Although this has been correctly implemented in IE/Edge (and Presto, FWIW) for ages, there's a ...
4 years, 8 months ago (2016-04-21 21:48:30 UTC) #2
eae
LGTM Thanks! That's quite a few tests.
4 years, 8 months ago (2016-04-21 22:04:26 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909233002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909233002/1
4 years, 8 months ago (2016-04-21 22:05:29 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/201812)
4 years, 8 months ago (2016-04-21 22:44:09 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1909233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1909233002/20001
4 years, 8 months ago (2016-04-22 07:53:25 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-22 09:18:44 UTC) #11
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:45:42 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b25fd3116d7cb9366a24af711666fc63a27f91b4
Cr-Commit-Position: refs/heads/master@{#389061}

Powered by Google App Engine
This is Rietveld 408576698