Repository navigation
Enable dominant-baseline, with modern values disabled behind pref - #535
Merged
Merged
Conversation
dominant-baseline, with moderm values disabled behind prefdominant-baseline, with modern values disabled behind pref
mrobinson
approved these changes
Nov 24, 2026
Removes the `layout.css.dominant-baseline.enabled` pref, thus enabling `dominant-baseline` by default. Adds a new `layout.css.baseline-metric.modern.enabled` pref, which gates the modern values of `dominant-baseline` and `alignment-baseline` which didn't exist in CSS2. These values were already disabled in `alignment-baseline`, but using conditional compilation instead of a pref. Signed-off-by: Oriol Brufau <[email protected]>
Daniel-1600
pushed a commit
to Daniel-1600/servo
that referenced
this pull request
Nov 25, 2026
Bumps Stylo to servo/stylo#535 Adds support for: - `dominant-baseline: auto` - `dominant-baseline: text-top` - `dominant-baseline: text-bottom` - `dominant-baseline: middle` Note that `auto` behaves as either `alphabetic` or `central`, so these are also implemented using approximate heuristics, but won't parse. The `central` approximation becomes the new default behavior for non-sideways vertical writing modes, this is a change since previously we were always using the `alphabetic` approximation. Testing: Various tests improve. Some new failures because we don't set presentational hints for SVG elements. Fixes: servo#50189 Part of servo#2560 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.
Removes the
layout.css.dominant-baseline.enabledpref, thus enablingdominant-baselineby default.Adds a new
layout.css.baseline-metric.modern.enabledpref, which gates the modern values ofdominant-baselineandalignment-baselinewhich didn't exist in CSS2.These values were already disabled in
alignment-baseline, but using conditional compilation instead of a pref.Servo PR: servo/servo#50196