fix(framework): resolve Safari WebKit table rendering and height collapse in Scrollable #3541
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
keithjgrant
Summary
Fixes an issue where tables wrapped in
Scrollablecollapse 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: autoandmin-width: auto. When an HTML<table>with sticky headers (.pf-m-sticky-header, applyingheight: 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: 0andmin-width: 0to bothOuterandInnerstyled components inframework/components/Scrollable.tsx.- Added
minHeight: 0to<Table>style inframework/PageTable/PageTable.tsx.2. GPU Composited Layer Promotion:
- Added
transform: 'translateZ(0)'to<Table>style and<Tbody>inframework/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
Risk Analysis - REQUIRED
Testing
Manual Testing
Verified in Safari on macOS:
<img width="1272" height="972" alt="image" src="https://github.com/user-attachments/assets/3a9ceef3-2eee-4a4b-9834-52208b90fe87" />