mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Issue #2780: Add back the mismatch overflow handling in nsRuleNode.cpp
This commit is contained in:
parent
b11affbdf3
commit
c3590da576
1 changed files with 9 additions and 0 deletions
|
|
@ -6427,6 +6427,15 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
|||
display->mOverflowY = NS_STYLE_OVERFLOW_HIDDEN;
|
||||
}
|
||||
|
||||
// If 'visible' is specified but doesn't match the other dimension, it
|
||||
// turns into 'auto'.
|
||||
if (display->mOverflowX == NS_STYLE_OVERFLOW_VISIBLE) {
|
||||
display->mOverflowX = NS_STYLE_OVERFLOW_AUTO;
|
||||
}
|
||||
if (display->mOverflowY == NS_STYLE_OVERFLOW_VISIBLE) {
|
||||
display->mOverflowY = NS_STYLE_OVERFLOW_AUTO;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// When 'contain: paint', update overflow from 'visible' to 'clip'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue