Skip to content

Fix table column min-content fitting - #103

Merged
odrobnik merged 1 commit into
mainfrom
agent/issue-102
Sep 14, 2026
Merged

odrobnik merged 1 commit into
mainfrom
agent/issue-102

Conversation

@odrobnik

Copy link
Copy Markdown
Contributor

Resolves #102.

@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-14T19:18:53.009627Z f7eeb09 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.

@odrobnik
odrobnik merged commit 6927092 into main Sep 14, 2026
7 checks passed
@odrobnik
odrobnik deleted the agent/issue-102 branch September 14, 2026 19:30
odrobnik added a commit that referenced this pull request Sep 15, 2026
SwiftTextCSS resolved `width` and `max-width` but had no notion of
`min-width` at all, so the declaration was parsed as an unknown longhand
and dropped — a box could be laid out narrower than its author-specified
minimum with no diagnostic.

Add `min-width` to ComputedStyle, parse it in the resolver alongside
`width`, and honour it in `copyLonghand` so `min-width: inherit` and
friends resolve. It is deliberately absent from `inheritedProperties`:
min-width is not an inherited property.

In block layout the used width is now clamped up to the minimum after
the max-width cap, so min-width wins when the two conflict, per
CSS 2.1 §10.4. `min-width: auto` resolves to nil and floors at 0,
leaving existing layouts unchanged.

The box-model tests move into their own suite: adding the min-width
layout test pushed RenderPDFTests.swift past SwiftLint's 1200-line
file_length limit, so used-width geometry gets a dedicated file the way
the text-decoration tests did in #95.

The CSS plumbing here was recovered from the abandoned agent/issue-97
branch, found while auditing for work lost to concurrent agents. That
branch was a superseded alternative fix for #97, which was resolved
differently by #96 and #103 — its competing table column-sizing changes
are deliberately not carried over.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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 --engine swift: one very wide cell drags every other column below its min-content width

1 participant