← Back to Pull requests

fix(framework): resolve Safari WebKit table rendering and height collapse in Scrollable #3541

Closed
unknown closed this pull request without merging on Sep 22, 2026 21:56 UTC
View on GitHub
unknown unknown commented on Sep 03, 2026 17:33 UTC
Author

Summary

Fixes an issue where tables wrapped in Scrollable collapse to zero height or fail to paint row contents in Safari (WebKit) when in Table View mode, causing table rows to appear invisible. List and Card view modes were unaffected.

Root Cause

This WebKit behavior consists of two parts:
1. Flexbox Intrinsic Height Collapse: Per the CSS Flexbox specification, flex items default to min-height: auto and min-width: auto. When an HTML <table> with sticky headers (.pf-m-sticky-header, applying height: 100%; overflow: auto;) is nested inside vertical flex containers (Outer -> Inner), WebKit fails to resolve the intrinsic height of the table body and collapses the container.
2. WebKit Compositor Paint Culling: Even after resolving container height with min-height: 0, WebKit's hardware-accelerated compositor culls the paint pass for <tbody> rows within the scrollable container. While layout metrics and bounding boxes are correctly calculated in the DOM, WebKit skips painting the rows' backing store to screen on initial load.

Fix

1. Flexbox Sizing:
- Added min-height: 0 and min-width: 0 to both Outer and Inner styled components in framework/components/Scrollable.tsx.
- Added minHeight: 0 to <Table> style in framework/PageTable/PageTable.tsx.
2. GPU Composited Layer Promotion:
- Added transform: 'translateZ(0)' to <Table> style and <Tbody> in framework/PageTable/PageTable.tsx. This promotes the table and tbody to dedicated GPU composited layers, ensuring WebKit paints rows and cell contents immediately on initial load.

Type of Change

  • Bug fix

  • Enhancement

  • Tests

  • Documentation

  • Other (please specify)
  • Risk Analysis - REQUIRED

  • High — Broad platform impact (e.g., SWR config, shared framework components, authentication, routing, API wrappers, build/bundler config). Changes affect multiple workspaces or could cause widespread regressions.

  • Medium — Scoped but cross-cutting (e.g., shared utility functions, changes to multiple pages within one workspace, component library updates, test infrastructure). Limited blast radius but touches common code paths.

  • Low — Narrowly scoped (styling tweaks ensuring flex containers allow table expansion and trigger proper layer painting in WebKit).
  • Testing

    Manual Testing

    Verified in Safari on macOS:

  • Table views across all resource pages (Templates, Projects, Users, Inventories) render rows immediately on initial load without requiring a view switch to List or Card mode.

  • Verified on live AAP 2.7:
  • <img width="1272" height="972" alt="image" src="https://github.com/user-attachments/assets/3a9ceef3-2eee-4a4b-9834-52208b90fe87" />

    Diff: 344 lines (+258 / -86) across 4 files Reviewer: keithjgrant Review duration: 27622m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 344 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3541"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.7% · Safe to merge
    16.7%