mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make input element display-inside always flow-root (#35908)
Signed-off-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com> Co-authored-by: Kenzie Raditya Tirtarahardja <kenzieradityatirtarahardja.18@gmail.com>
This commit is contained in:
parent
8dda64f14b
commit
40270cb626
8 changed files with 136 additions and 16 deletions
|
@ -15,7 +15,6 @@ use style::properties::ComputedValues;
|
|||
|
||||
use super::{BaseFragment, BaseFragmentInfo, CollapsedBlockMargins, Fragment};
|
||||
use crate::formatting_contexts::Baselines;
|
||||
use crate::fragment_tree::FragmentFlags;
|
||||
use crate::geom::{
|
||||
AuOrAuto, LengthPercentageOrAuto, PhysicalPoint, PhysicalRect, PhysicalSides, ToLogical,
|
||||
};
|
||||
|
@ -346,8 +345,7 @@ impl BoxFragment {
|
|||
/// Whether this is a non-replaced inline-level box whose inner display type is `flow`.
|
||||
/// <https://drafts.csswg.org/css-display-3/#inline-box>
|
||||
pub(crate) fn is_inline_box(&self) -> bool {
|
||||
self.style.get_box().display.is_inline_flow() &&
|
||||
!self.base.flags.contains(FragmentFlags::IS_REPLACED)
|
||||
self.style.is_inline_box(self.base.flags)
|
||||
}
|
||||
|
||||
/// Whether this is a table wrapper box.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue