Implement 'empty-cells' for layout 2020 (#32331)

https://drafts.csswg.org/css-tables/#empty-cell-rendering

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oriol Brufau 2024-05-21 13:08:08 +02:00 committed by GitHub
parent 9d57c0de77
commit 5b13604bd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 46 additions and 133 deletions

View file

@ -32,7 +32,7 @@ use crate::context::LayoutContext;
use crate::display_list::conversions::ToWebRender;
use crate::display_list::stacking_context::StackingContextSection;
use crate::fragment_tree::{
BackgroundMode, BoxFragment, Fragment, FragmentTree, Tag, TextFragment,
BackgroundMode, BoxFragment, Fragment, FragmentFlags, FragmentTree, Tag, TextFragment,
};
use crate::geom::{LogicalRect, PhysicalPoint, PhysicalRect};
use crate::replaced::IntrinsicSizes;
@ -631,6 +631,14 @@ impl<'a> BuilderForBoxFragment<'a> {
self.build_outline(builder);
} else {
self.build_hit_test(builder);
if self
.fragment
.base
.flags
.contains(FragmentFlags::DO_NOT_PAINT)
{
return;
}
self.build_background(builder);
self.build_box_shadow(builder);
self.build_border(builder);