servo/components/layout
Martin Robinson 81f5157522
Add support for table fixups (#30868)
This adds support for fixing up tables so that internal table elements
that are not properly parented in the DOM have the correct box tree
structure according to the CSS Table specification [1]. Note that this
only comes into play when building the DOM via script, as HTML 5 has its
own table fixups that mean that the box tree construction fixups here
are not necessary.

There are no tests for this change. In general, it's hard to write tests
against the shape of the box tree, because it depends on the DOM. We
plan to test this via WPT tests once layout is complete.

1. https://drafts.csswg.org/css-tables/#table-internal-element

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2023-12-22 12:11:58 +00:00
..
display_list layout: Make all word separators justification opportunities (#30866) 2023-12-21 22:49:24 +00:00
block.rs Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578) 2023-10-18 13:16:11 +00:00
Cargo.toml Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
construct.rs Add support for table fixups (#30868) 2023-12-22 12:11:58 +00:00
context.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
data.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
flex.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
floats.rs Temporarily convert existing cfg(debug_assertions) crashes to warnings (#30578) 2023-10-18 13:16:11 +00:00
flow.rs Fix transform assertion failures in Layout 2013 and Layout 2020 (#30713) 2023-11-13 09:09:25 +00:00
flow_list.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
flow_ref.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
fragment.rs Fix transform assertion failures in Layout 2013 and Layout 2020 (#30713) 2023-11-13 09:09:25 +00:00
generated_content.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
incremental.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
inline.rs layout: Make all word separators justification opportunities (#30866) 2023-12-21 22:49:24 +00:00
layout_debug.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
lib.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
linked_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
list_item.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
model.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
multicol.rs Further changes required by Servo 2023-11-04 08:17:09 +01:00
parallel.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
persistent_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
query.rs Further changes required by Servo 2023-11-24 08:57:14 +01:00
sequential.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_caption.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_colgroup.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_row.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_rowgroup.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
table_wrapper.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
text.rs Further changes required by Servo 2023-11-04 08:17:09 +01:00
traversal.rs Fix transform assertion failures in Layout 2013 and Layout 2020 (#30713) 2023-11-13 09:09:25 +00:00
wrapper.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00