servo/components/style/servo
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
..
media_queries.rs style: Remove viewport rule code 2023-11-24 08:57:14 +01:00
mod.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
restyle_damage.rs Ensure reflow damage is calculated when hypothetical box changes. 2022-03-14 12:20:46 -04:00
selector_parser.rs Add support for table fixups (#30868) 2023-12-22 12:11:58 +00:00
url.rs style: Use write_char in place of write_str when serializing single-character literals 2023-11-06 09:35:57 +01:00