Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pagedjs
pagedjs
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Tools
  • pagedjspagedjs
  • Issues
  • #223

Closed
Open
Opened Jul 04, 2020 by Guillaume@mogztter
  • Report abuse
  • New issue
Report abuse New issue

Child parent break propagation with break-before page

According to the specification:

3.1.1. Child→Parent Break Propagation Since breaks are only allowed between siblings, not between a box and its container (see Possible Break Points), break values applied to children at the start/end of a parent are propagated to the parent, where they can take effect.

https://drafts.csswg.org/css-break-3/#break-propagation

If I understand correctly it means that we should not add a blank page before the first section in this document: break-before-child-parent-propagation.html

<main>
  <section>
    <h2>Section 1</h2>
    <p>This is a paragraph.</p>
  </section>
</main>

The break-before is only allowed between siblings but <section> has not sibling. So we should not break between <section> and its container <main>.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: tools/pagedjs#223