feat(devices): add Galaxy Z Fold and Galaxy Z Flip device families#40988
feat(devices): add Galaxy Z Fold and Galaxy Z Flip device families#40988dimkin-eu wants to merge 2 commits into
Conversation
Add portrait and landscape descriptors for the Galaxy Z Fold 6 / 7 and Galaxy Z Flip 6 / 7 generations, with both inner (unfolded) and cover (folded/external) displays per the naming convention agreed in microsoft#40917: Galaxy Z Fold 6 928x1080 scale 2 (inner) Galaxy Z Fold 6 Cover 484x1188 scale 2 (cover) Galaxy Z Fold 7 984x1092 scale 2 (inner) Galaxy Z Fold 7 Cover 360x840 scale 3 (cover) Galaxy Z Flip 6 360x880 scale 3 (inner) Galaxy Z Flip 6 Cover 360x374 scale 2 (cover) Galaxy Z Flip 7 360x840 scale 3 (inner) Galaxy Z Flip 7 Cover 474x524 scale 2 (cover) Every value above satisfies `physical == screen × scale` exactly, with no rounding drift. Sources - Galaxy Z Fold 7 inner: yesviz.com (984x1092 / DPR 2). - Galaxy Z Flip 7 inner: yesviz.com (360x840 / DPR 3). - All other CSS values derived from physical panel resolutions published on each device's Wikipedia page (Samsung Galaxy Z Fold 6 / Z Fold 7 / Z Flip 6 / Z Flip 7), divided by a DPR that makes both dimensions exact integers. - Browser-chrome offsets follow the existing Pixel 7 entry (76 px portrait / 52 + 52 landscape). UA strings use Android 10 to match Chrome User-Agent Reduction (https://privacysandbox.google.com/protections/user-agent). The Chrome 149.0.7827.22 segment will be auto-normalised by doclint to whatever Chromium version Playwright currently bundles.
Test results for "MCP"7181 passed, 1113 skipped Merge workflow run. |
|
Lint is failing, can you run |
Test results for "tests 1"129 failed 2 flaky43797 passed, 861 skipped Merge workflow run. |
|
@Skn0tt , done — added |
Summary
Add device descriptors for the Galaxy Z Fold 6 / 7 and Galaxy Z Flip 6 / 7 generations to
deviceDescriptorsSource.json. Each device gets four entries — the inner (unfolded) display and the cover (external/folded) display, each with portrait + landscape variants — per the naming convention agreed in #40917.Devices added
8 devices × portrait + landscape = 16 entries, all
defaultBrowserType: chromium:Every row above satisfies
physical = screen × scaleexactly — no rounding drift.Browser-chrome subtraction for the viewport values follows the existing Pixel 7 entry's chrome math (76 px portrait / 52 + 52 landscape).
User-Agent string
UA pattern matches the existing Galaxy entries in this file:
Model codes used:
SM-F956U(Fold 6),SM-F966U(Fold 7),SM-F741U(Flip 6),SM-F761U(Flip 7).Android 10matches Chrome's User-Agent Reduction freeze. Ref: https://privacysandbox.google.com/protections/user-agentThe Chrome version segment is auto-normalised by doclint to whatever Chromium version Playwright currently bundles.
Sources
984×1092 / DPR 2.360×840 / DPR 3.Reviewers with real-device access may want to confirm the DPR choices on actual hardware (especially the cover screens) — happy to update with measured numbers if anyone runs a quick check.