mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Enable min-content, max-content, fit-content and stretch (#33492)
For the sizing properties. We don't actually support them yet, just treating them as the initial value. Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
4bde9af515
commit
9597390d2b
66 changed files with 120 additions and 2798 deletions
|
@ -14,7 +14,6 @@ use script_layout_interface::wrapper_traits::ThreadSafeLayoutNode;
|
|||
use serde::Serialize;
|
||||
use style::logical_geometry::{LogicalMargin, LogicalRect, LogicalSize, WritingMode};
|
||||
use style::properties::ComputedValues;
|
||||
use style::values::computed::length::Size;
|
||||
use style::values::computed::Color;
|
||||
use style::values::generics::box_::{VerticalAlign, VerticalAlignKeyword};
|
||||
use style::values::specified::BorderStyle;
|
||||
|
@ -206,10 +205,13 @@ impl Flow for TableCellFlow {
|
|||
);
|
||||
|
||||
self.block_flow.bubble_inline_sizes_for_block(true);
|
||||
let specified_inline_size = match self.block_flow.fragment.style().content_inline_size() {
|
||||
Size::Auto => Au(0),
|
||||
Size::LengthPercentage(ref lp) => lp.to_used_value(Au(0)),
|
||||
};
|
||||
let specified_inline_size = self
|
||||
.block_flow
|
||||
.fragment
|
||||
.style()
|
||||
.content_inline_size()
|
||||
.to_used_value(Au(0))
|
||||
.unwrap_or(Au(0));
|
||||
|
||||
if self
|
||||
.block_flow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue