Repository navigation
Allow display: flow-root list-item for Servo - #539
Merged
Merged
Conversation
In the past, Servo didn't support `flow-root` nor `contents`, so these values were restricted to Gecko with conditional compilation. Now Servo supports them, but some conditional compilation remained: - `flow-root` was ignored in `is_valid_for_list_item()` for Servo. - `contents` was ignored in `is_line_participant()` for Servo. Note only the former mattered in practice, since `is_line_participant()` is only used by Gecko. To avoid risks of having the same problem for `ruby` or `-webkit-box`, this patch removes all conditional compilation for `display` values. But the unsupported values ara gated by Servo-specific preferences. Signed-off-by: Oriol Brufau <[email protected]>
mrobinson
approved these changes
Nov 27, 2026
shubhamg13
pushed a commit
to shubhamg13/servo
that referenced
this pull request
Nov 27, 2026
Bumps Stylo to servo/stylo#539 We were already capable of handling a list item that establishes a block formatting context by other means (e.g. `align-content: start`), but this allows authors to opt into this behavior with `display` alone. Testing: Some tests pass Signed-off-by: Oriol Brufau <[email protected]>
staging-devin-ai-integration Bot
pushed a commit
to DioxusLabs/blitz
that referenced
this pull request
Nov 28, 2026
- Handle DisplayOutside::InternalRuby and the ruby/webkit-box DisplayInside variants, now compiled for Servo (servo/stylo#539) - Map the modern AlignmentBaseline values, now compiled for Servo behind layout.css.baseline-metric.modern.enabled (servo/stylo#535) - Pass a per-document random() hasher key to Device::new (servo/stylo#520) - Fill the new prefers-contrast/-reduced-motion/-reduced-transparency MediaData fields with NoPreference (servo/stylo#528)
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.
In the past, Servo didn't support
flow-rootnorcontents, so these values were restricted to Gecko with conditional compilation.Now Servo supports them, but some conditional compilation remained:
flow-rootwas ignored inis_valid_for_list_item()for Servo.contentswas ignored inis_line_participant()for Servo.Note only the former mattered in practice, since
is_line_participant()is only used by Gecko.To avoid risks of having the same problem for
rubyor-webkit-box, this patch removes all conditional compilation fordisplayvalues. But the unsupported values are gated by Servo-specific preferences.Servo PR: servo/servo#50254