Does My Layout Break Across Browsers?

Safari (WebKit) has 2 layout issues affecting container dimensions and flex wrapping; Chromium and Firefox pass with 1 minor variance.

Chromium 0 issues
Pass
Safari 2 issues
Issues Found
Firefox 1 issues
Issues Found
Chromium 124 (Blink) 1280x800
Chromium 124 Screenshot
Safari 17.4 (WebKit) 1280x800
Safari 17.4 Screenshot
1
2
Firefox 125 (Gecko) 1280x800
Firefox 125 Screenshot
3
Safari Render
Chromium Baseline
⇄

Top Layout Problems Prioritized by Impact

1 Navigation CTA Collapses Into Next Row
Safari critical
Affected: header nav .cta-container
Flexbox items wrap prematurely due to min-width: auto defaulting.
Expected
Single line layout, height 64px
Measured Difference
+48px height delta, wraps to line 2
Fix: Set flex-shrink: 0 and min-width: 0 on .cta-container child items.
2 Grid Cell Aspect Ratio Stretched
Safari high
Affected: .pricing-grid .card-feature
WebKit ignores aspect-ratio inside nested auto-rows grid items.
Expected
Square card aspect ratio 1:1
Measured Difference
Height stretched by 32px over width
Fix: Define explicit min-height or apply width: 100% on the inner figure element.
3 Subpixel Scrollbar Causes Overflow Offset
Firefox medium
Affected: .sidebar-scroll-panel
Gutter reservation adds unexpected 14px horizontal overflow.
Expected
Zero horizontal scrollbar at 1280px width
Measured Difference
+14px scrollWidth over clientWidth
Fix: Add scrollbar-gutter: stable or overflow-x: clip.

Layout Consistency Metrics

Element Alignment Difference Found
Spacing & Dimensions Difference Found
Overlap & Clipping Pass
Element Visibility Pass
Text-Related Shifts Pass
Overflow & Positioning Difference Found

AI Fix Prompt

Fix cross-browser layout inconsistencies found across Safari and Firefox while preserving Chromium behavior:

1. Safari (WebKit) flex wrapping:
Target: `header nav .cta-container`
Observed: Items wrap prematurely, causing +48px height displacement.
Fix: Add `flex-shrink: 0; min-width: 0;` to flex items.

2. Safari (WebKit) grid aspect ratio:
Target: `.pricing-grid .card-feature`
Observed: Card stretches vertically by 32px ignoring 1:1 aspect ratio in nested auto-rows.
Fix: Explicitly set `align-self: start; width: 100%; aspect-ratio: 1 / 1;`.

3. Firefox (Gecko) scroll gutter overflow:
Target: `.sidebar-scroll-panel`
Observed: 14px horizontal overflow triggered by subpixel scrollbar reservation.
Fix: Apply `scrollbar-gutter: stable; overflow-x: clip;`.

Acceptance criteria:
- All 3 browsers render consistent 64px header height at 1280px viewport.
- No unexpected horizontal scrolling in Firefox.
- Cards maintain 1:1 ratio across Blink, WebKit, and Gecko.
Click or select text above to copy Prompt Ready