mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Issue #1992 - Part 1: Un-prefix -moz-{min|max}-content keywords.
This commit is contained in:
parent
91b51a6509
commit
fa8bc1e81c
7 changed files with 15 additions and 18 deletions
|
|
@ -4676,7 +4676,7 @@ GetDefiniteSizeTakenByBoxSizing(StyleBoxSizing aBoxSizing,
|
|||
return sizeTakenByBoxSizing;
|
||||
}
|
||||
|
||||
// Handles only -moz-max-content and -moz-min-content, and
|
||||
// Handles only max-content and min-content, and
|
||||
// -moz-fit-content for min-width and max-width, since the others
|
||||
// (-moz-fit-content for width, and -moz-available) have no effect on
|
||||
// intrinsic widths.
|
||||
|
|
@ -4704,10 +4704,10 @@ GetIntrinsicCoord(const nsStyleCoord& aStyle,
|
|||
if (aProperty == PROP_WIDTH)
|
||||
return false; // handle like 'width: auto'
|
||||
if (aProperty == PROP_MAX_WIDTH)
|
||||
// constrain large 'width' values down to -moz-max-content
|
||||
// constrain large 'width' values down to max-content
|
||||
val = NS_STYLE_WIDTH_MAX_CONTENT;
|
||||
else
|
||||
// constrain small 'width' or 'max-width' values up to -moz-min-content
|
||||
// constrain small 'width' or 'max-width' values up to min-content
|
||||
val = NS_STYLE_WIDTH_MIN_CONTENT;
|
||||
}
|
||||
|
||||
|
|
@ -4991,7 +4991,7 @@ nsLayoutUtils::IntrinsicForAxis(PhysicalAxis aAxis,
|
|||
styleISize.GetIntValue() == NS_STYLE_WIDTH_MIN_CONTENT)) {
|
||||
// -moz-fit-content and -moz-available enumerated widths compute intrinsic
|
||||
// widths just like auto.
|
||||
// For -moz-max-content and -moz-min-content, we handle them like
|
||||
// For max-content and min-content, we handle them like
|
||||
// specified widths, but ignore box-sizing.
|
||||
boxSizing = StyleBoxSizing::Content;
|
||||
if (aMarginBoxMinSizeClamp != NS_MAXSIZE &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue