Repository navigation
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
… expose them to getComputedStyle
staging-devin-ai-integration
Bot
force-pushed
the
devin/1790445330-sticky-resolved-insets-on-887
branch
from
September 27, 2026 12:56
07283e4 to
e6c6832
Compare
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.
Summary
This PR is stacked on #887 and is currently rebased onto its head
6beade9f. #887 comes from a fork, so this PR targetsmainand its diff includes #887. Only the last commit is new.getComputedStylenow returns the sticky insets that #887's sticky code actually uses, rather than recomputing the scrollport inresolved_style.rs. As a result,css/cssom/getComputedStyle-insets-sticky*.htmlnow test the sticky implementation's scrollport lookup and percentage resolution.sticky.rs: addsBaseDocument::sticky_resolved_insets(node) -> Option<Rect<Option<f32>>>. It readsStickyConstraints.{top,right,bottom,left}from the registry, as set by the lastupdate_sticky_offsets().resolved_style.rs: adds aPosition::Stickyarm. A non-autoinset resolves to the value above in px. Anautoinset, or a box with no constraints yet, falls back to the computed value.sticky.rsfix: percentage insets now resolve against the scroll container's content box. Previously they resolved against the padding box (size - border), because padding was not subtracted. The abspos WPT variant catches this: it expects18.4px, which is 10% of the 184px content height, not of the 200px padding box.Local WPT results, compared with the #887 head
6beade9f:getComputedStyle-insets-sticky.html: 180/252 → 252/252getComputedStyle-insets-sticky-container-for-abspos.html: 180/252 → 252/252getComputedStyle-insets-relative.htmlandgetComputedStyle-insets-static.html: unchanged, both still fully passingcss/css-position/sticky: no test changed status (114/164 subtests)Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/c0abbbd0d6164e688cd103ac2998dff3
Open in Devin Desktop: https://dioxus.staging.devinenterprise.com/desktop/session/c0abbbd0d6164e688cd103ac2998dff3?variant=devin-insiders
Requested by: @nicoburns
WPT results
Subtests: 212 newly passing, 2 newly failing (net +210). Crashes: +1.
Full diff (44 changed tests)
Generated by the WPT workflow.