Repository navigation
fix: avoid degrading panel hosts for CSS page zoom - #1110
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CSS page zoom is currently treated as a page-level transform by the panel-host geometry check. With
body { zoom: 1.15 }, the fixed host has an expected visual height of roughly 932.6px in an 811px viewport. The check switches it to absolute positioning, creating document overflow and allowing focus/scroll actions to move the entire shell.Account for cumulative ancestor CSS zoom when comparing the viewport-height declaration. Keep the inset-derived width and origin checks unchanged, so actual ancestor transforms still trigger compensation. Apply the same expected-height comparison when checking whether degraded mode can exit.
Adds real-browser regressions exercising production geometry and host CSS: no zoom, body zoom at 115% and 85%, html zoom, nested zoom, and a real ancestor translation that stays compensated until removal.
Refs #1102.
Local validation:
Real-host validation used the npm-packed plugin installed through official
dsh plugin --profile web addinto a scratch profile with exact@deepseek-ai/dsh@0.2.1-rc.1, without API credentials. The final desktop Edge run passed all 12 selected tests: 5 real-host mount tests, the in-page native entry replacement, and the 6 geometry regressions. The geometry regressions themselves exercise extracted production code and actual host CSS. The Windows scratch host needed the genuinenode-addon-require-builtin-win32-x64-msvc@0.1.9dependency plusNODE_PATH; no official DSH source was changed.The broader browser run was 17 passed / 6 skipped / 3 failed. Native reload initially lacked
DSH_HOMEin my manual test invocation and passed after that environment was supplied. The other two failures (Git Graph stays at 50 rather than 52 history rows; folder expansion requests the absolute workspace root rather thanbig) reproduced with the untouched dev client at bd6cfa5 in the same scratch host. They remain outside this fix. Search-engine assertions passed for installed rg; fd checks skipped because fd is unavailable. No macOS, mobile, Firefox or WebKit validation is claimed.AI-assisted implementation, tests and independent review; reviewed and tested locally.