layout: skip display:none children when classifying flow children - #661
Merged
Merged
Conversation
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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
classify_flow_childrenletdisplay:nonechildren vote in the inline-vs-block classification: they clearedall_out_of_flowwhile leavingall_inlinetrue. Forcss/css-overflow/overflow-body-propagation-013.html(:root { display: none }), the Document node's only child (the display:none<html>) produced an "all inline" classification, so the Document node itself was queued as an inline layout root, panicking atresolve.rs:375onelement_data_mut().unwrap()(Document nodes have no element data).display:nonechildren generate no boxes, so they now cast no vote at all (skipped like whitespace/comments):With this (plus the harness fix in #660) the test goes CRASH → PASS. Full css WPT run shows no regressions from this change (a few FAIL → PASS improvements).
Link to Devin session: https://dioxus.staging.devinenterprise.com/sessions/f1a0d6696eaa4076a48f366a24bfd26f
Requested by: @nicoburns
WPT results
9 newly passing, 0 newly failing (net +9), 2 other status changes.
Full diff (11 changed tests)
Generated by the WPT workflow.