mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Avoid whitespace collapse for text inputs (fixes #8772)
This commit is contained in:
parent
23e7dfa57b
commit
46a9c92b70
1 changed files with 4 additions and 0 deletions
|
@ -6993,6 +6993,10 @@ pub fn modify_style_for_input_text(style: &mut Arc<ComputedValues>) {
|
|||
margin_style.margin_right = computed::LengthOrPercentageOrAuto::Length(Au(0));
|
||||
margin_style.margin_bottom = computed::LengthOrPercentageOrAuto::Length(Au(0));
|
||||
margin_style.margin_left = computed::LengthOrPercentageOrAuto::Length(Au(0));
|
||||
|
||||
// whitespace inside text input should not be collapsed
|
||||
let inherited_text = Arc::make_mut(&mut style.inheritedtext);
|
||||
inherited_text.white_space = longhands::white_space::computed_value::T::pre;
|
||||
}
|
||||
|
||||
/// Adjusts the `clip` property so that an inline absolute hypothetical fragment doesn't clip its
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue