diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-12-10 23:17:05 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-12-12 14:55:41 -0800 |
commit | caee309ef4186de7b39529b37a7d5c68849e5222 (patch) | |
tree | 07c836e1079070f5804862f5124df57cf0508fe2 /components/layout/table.rs | |
parent | 071d320728cc2a4976801bd7a955f8efa138b739 (diff) | |
download | servo-caee309ef4186de7b39529b37a7d5c68849e5222.tar.gz servo-caee309ef4186de7b39529b37a7d5c68849e5222.zip |
layout: Implement `text-indent` per CSS 2.1 § 16.1.
I had to use a somewhat unconventional method of computing text
indentation (propagating from blocks down to inlines) because of the way
containing blocks are handled in Servo.
(As a side note, neither Gecko nor WebKit correctly handles percentages
in `text-align`, at least incrementally -- i.e. when the percentages are
relative to the viewport and the viewport is resized.)
Diffstat (limited to 'components/layout/table.rs')
-rw-r--r-- | components/layout/table.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout/table.rs b/components/layout/table.rs index b65fa689919..37f589917a2 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -315,6 +315,7 @@ impl Flow for TableFlow { self.block_flow.base.flags.remove(IMPACTED_BY_RIGHT_FLOATS); self.block_flow.propagate_assigned_inline_size_to_children( + layout_context, inline_start_content_edge, content_inline_size, Some(self.column_computed_inline_sizes.as_slice())); |