Bug 1786399 - Check for block layout when applying and propagating page-name properti...
commitb924dafc0601b1d217d7b985b4a16b739e46ebcf
authorEmily McDonough <emcdonough@mozilla.com>
Mon, 12 Sep 2022 22:44:49 +0000 (12 22:44 +0000)
committerEmily McDonough <emcdonough@mozilla.com>
Mon, 12 Sep 2022 22:44:49 +0000 (12 22:44 +0000)
treeef64df66eee974f3f96c1ef9991f6186eedc4160
parent4e5f2c8f05aef9bef46a89514b2fd9ee2b91c5fb
Bug 1786399 - Check for block layout when applying and propagating page-name properties r=dholbert

The page-name property only applies to boxes which can create class A
breakpoints. One of the qualifiers for this is a block-level item, which is
the child of a block frame. Additionally, page-name propagation only occurs
through frames for which the page-name property applies, because where it does
not apply the auto page-name is propagated instead.

This means we only need to worry about block frames, and only use specified
page-name for BlockOutside frames.

Differential Revision: https://phabricator.services.mozilla.com/D155285
layout/base/nsCSSFrameConstructor.cpp
layout/reftests/css-page/page-name-flex-001-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-001.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-002-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-002.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-003-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-003.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-004-ref.html [new file with mode: 0644]
layout/reftests/css-page/page-name-flex-004.html [new file with mode: 0644]
layout/reftests/css-page/reftest.list