diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-05-21 13:08:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 11:08:08 +0000 |
commit | 5b13604bd8dbbd26275243d2882761b158291647 (patch) | |
tree | cd9eef3f8de266201ad288b9ac90ead217241a29 /components/layout_2020/fragment_tree/base_fragment.rs | |
parent | 9d57c0de7758eb609306b8f11d93cead6c148786 (diff) | |
download | servo-5b13604bd8dbbd26275243d2882761b158291647.tar.gz servo-5b13604bd8dbbd26275243d2882761b158291647.zip |
Implement 'empty-cells' for layout 2020 (#32331)
https://drafts.csswg.org/css-tables/#empty-cell-rendering
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/layout_2020/fragment_tree/base_fragment.rs')
-rw-r--r-- | components/layout_2020/fragment_tree/base_fragment.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout_2020/fragment_tree/base_fragment.rs b/components/layout_2020/fragment_tree/base_fragment.rs index 3dbb530a4c6..d7081cd0403 100644 --- a/components/layout_2020/fragment_tree/base_fragment.rs +++ b/components/layout_2020/fragment_tree/base_fragment.rs @@ -94,6 +94,9 @@ bitflags! { /// Whether or not this Fragment was created to contain a list item marker /// with a used value of `list-style-position: outside`. const IS_OUTSIDE_LIST_ITEM_MARKER = 0b00001000; + /// Avoid painting the fragment, this is used for empty table cells when 'empty-cells' is 'hide'. + /// This flag doesn't avoid hit-testing. + const DO_NOT_PAINT = 0b00010000; } } |