mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Resolve content-visibility fixme in html details element
This commit is contained in:
parent
020b20d817
commit
0ae048102c
Notes:
sideshowbarker
2024-07-19 21:35:40 +09:00
Author: https://github.com/EdwinHoksberg
Commit: 0ae048102c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/267
Reviewed-by: https://github.com/AtkinsSJ ✅
2 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||||
"I'm a summary"
|
"I'm a summary"
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
ListItemMarkerBox <(anonymous)> at (8,8) content-size 12x17 children: not-inline
|
ListItemMarkerBox <(anonymous)> at (8,8) content-size 12x17 children: not-inline
|
||||||
|
BlockContainer <slot> at (8,25) content-size 784x0 children: not-inline
|
||||||
BlockContainer <(anonymous)> at (8,25) content-size 784x0 children: inline
|
BlockContainer <(anonymous)> at (8,25) content-size 784x0 children: inline
|
||||||
TextNode <#text>
|
TextNode <#text>
|
||||||
|
|
||||||
|
@ -19,4 +20,5 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
||||||
PaintableWithLines (ListItemBox<SUMMARY>) [32,8 760x17]
|
PaintableWithLines (ListItemBox<SUMMARY>) [32,8 760x17]
|
||||||
TextPaintable (TextNode<#text>)
|
TextPaintable (TextNode<#text>)
|
||||||
MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8 12x17]
|
MarkerPaintable (ListItemMarkerBox(anonymous)) [8,8 12x17]
|
||||||
|
PaintableWithLines (BlockContainer<SLOT>) [8,25 784x0]
|
||||||
PaintableWithLines (BlockContainer(anonymous)) [8,25 784x0]
|
PaintableWithLines (BlockContainer(anonymous)) [8,25 784x0]
|
||||||
|
|
|
@ -185,9 +185,8 @@ void HTMLDetailsElement::update_shadow_tree_style()
|
||||||
display: block;
|
display: block;
|
||||||
)~~~"_string));
|
)~~~"_string));
|
||||||
} else {
|
} else {
|
||||||
// FIXME: Should be `display: block` but we do not support `content-visibility: hidden`.
|
|
||||||
MUST(m_descendants_slot->set_attribute(HTML::AttributeNames::style, R"~~~(
|
MUST(m_descendants_slot->set_attribute(HTML::AttributeNames::style, R"~~~(
|
||||||
display: none;
|
display: block;
|
||||||
content-visibility: hidden;
|
content-visibility: hidden;
|
||||||
)~~~"_string));
|
)~~~"_string));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue