mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1641 - Implement CSS flow-root keyword
This is just a clean port of 1322191 and follow-up 1325970. It really seems to add create a new way to access existing code relating to block formatting and floating elements rather than implementing new functionality, and it is mercifully straightforwards.
This commit is contained in:
parent
0af26afc22
commit
9532970df5
15 changed files with 68 additions and 16 deletions
|
|
@ -250,6 +250,7 @@ nsRuleNode::EnsureBlockDisplay(StyleDisplay& display,
|
|||
case StyleDisplay::Flex:
|
||||
case StyleDisplay::WebkitBox:
|
||||
case StyleDisplay::Grid:
|
||||
case StyleDisplay::FlowRoot:
|
||||
// do not muck with these at all - already blocks
|
||||
// This is equivalent to nsStyleDisplay::IsBlockOutside. (XXX Maybe we
|
||||
// should just call that?)
|
||||
|
|
@ -293,6 +294,7 @@ nsRuleNode::EnsureInlineDisplay(StyleDisplay& display)
|
|||
// see if the display value is already inline
|
||||
switch (display) {
|
||||
case StyleDisplay::Block:
|
||||
case StyleDisplay::FlowRoot:
|
||||
display = StyleDisplay::InlineBlock;
|
||||
break;
|
||||
case StyleDisplay::Table:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue