Skip to content

Fix first WebKit table continuation page - #99

Merged
odrobnik merged 4 commits into
mainfrom
agent/issue-71
Sep 14, 2026
Merged

odrobnik merged 4 commits into
mainfrom
agent/issue-71

Conversation

@odrobnik

Copy link
Copy Markdown
Contributor

Resolves #71.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-14T16:37:37.804465Z c75d12d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c75d12d54e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +356 to +357
let startsOnNewPage = tableRect.height > pageHeight
&& (tableRect.top > pageHeight || offset > pageHeight * 0.25);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep avoid-linked headings with long tables

When a multipage table follows a heading with break-after: avoid and either begins beyond the first page or after the 25% threshold, this sets startsOnNewPage and later inserts a forced page-break marker directly between the heading and table. Forced breaks override the heading's avoid rule, leaving the heading orphaned on the preceding page; the newly added fixture applies exactly this CSS to the heading before its long table but only asserts table-page contents. Move the boundary before the avoid-linked content or otherwise preserve the avoid relationship.

Useful? React with 👍 / 👎.

@odrobnik
odrobnik merged commit 0c79097 into main Sep 14, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

render (webkit): first continuation page of a table has no repeated header and is left mostly empty

1 participant