Repository navigation
Preserve CSSOM anchor functions in dynamically attached overlays - #907
Merged
Merged
Conversation
This was referenced Sep 22, 2026
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.
Problem and resulting behavior
Code OSS creates Markdown Preview overlays after the workbench loads and assigns
top,left,width, andheightthrough JavaScript style named setters. In the exact signed AppScene package, the editor anchors measure 792×857 and 396×822, but the overlay and iframe remain 0×0. WebScene retained these anchor functions from stylesheets andsetProperty(), but lost them through named setters and again when a detached element was attached and recascaded. This change retains the six inset/size functions and restores only authored inline anchor functions during recascade. Ordinary nodes avoid the extra authored-style lookups.The product-neutral contract creates an anchor and fixed overlay through CSSOM, then checks resize, movement, replacement/restoration, right/bottom insets, and 64 panel moves. No Code OSS source change is needed. This is the focused engine fix for #903; keep #903 open until the exact rebuilt SDK/CLI app paints Markdown and passes visual, lifecycle, and idle-CPU acceptance.
Validation
Details:
docs/validation/css-anchor-cssom-903-20260922.md.