Skip to content

DOCX: conditional table styles ignore border definitions #289

Description

@developer0hye

Problem

DOCX table styles can define base w:tblBorders and region-specific w:tcBorders inside w:tblStylePr. office2pdf's conditional table-style resolver currently carries only background, text color, and bold state, so the declared borders are lost.

In the public complex-table fixture, Word draws white grid borders over black/gray fills. Current main draws black fallback borders. Removing fallback gridlines in #277 does not resolve the root cause because the style's white borders would still be absent.

Expected behavior

Parse and cascade base and conditional table-style borders, including nil sides, inside horizontal/vertical borders, edge regions, and merged-cell spans, while preserving direct cell-border precedence.

Related: #195, #203

Side-by-side (GT left, office2pdf right)

GT vs current output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions