mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
layout: Make inline absolute hypothetical boxes not clip their contents.
Improves the logo on ebay.com.
This commit is contained in:
parent
19d466b062
commit
c328c38804
5 changed files with 49 additions and 1 deletions
|
@ -6533,6 +6533,16 @@ pub fn modify_style_for_input_text(style: &mut Arc<ComputedValues>) {
|
|||
margin_style.margin_left = computed::LengthOrPercentageOrAuto::Length(Au(0));
|
||||
}
|
||||
|
||||
/// Adjusts the `clip` property so that an inline absolute hypothetical fragment doesn't clip its
|
||||
/// children.
|
||||
pub fn modify_style_for_inline_absolute_hypothetical_fragment(style: &mut Arc<ComputedValues>) {
|
||||
if style.get_effects().clip.0.is_some() {
|
||||
let mut style = Arc::make_unique(style);
|
||||
let effects_style = Arc::make_unique(&mut style.effects);
|
||||
effects_style.clip.0 = None
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_supported_property(property: &str) -> bool {
|
||||
match_ignore_ascii_case! { property,
|
||||
% for property in SHORTHANDS + LONGHANDS[:-1]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue