mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
Issue #1838 - Follow-up: Prevent grid shorthand from resetting gutter properties
This also fixes crashing when using the grid shorthand property.
This commit is contained in:
parent
4a57663c1d
commit
e16a340a33
2 changed files with 0 additions and 19 deletions
|
|
@ -1248,18 +1248,6 @@ Declaration::GetPropertyValueInternal(
|
|||
// #2 <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>?
|
||||
// #3 [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>
|
||||
case eCSSProperty_grid: {
|
||||
const nsCSSValue& columnGapValue =
|
||||
*data->ValueFor(eCSSProperty_column_gap);
|
||||
if (columnGapValue.GetUnit() != eCSSUnit_Pixel ||
|
||||
columnGapValue.GetFloatValue() != 0.0f) {
|
||||
return; // Not serializable, bail.
|
||||
}
|
||||
const nsCSSValue& rowGapValue =
|
||||
*data->ValueFor(eCSSProperty_row_gap);
|
||||
if (rowGapValue.GetUnit() != eCSSUnit_Pixel ||
|
||||
rowGapValue.GetFloatValue() != 0.0f) {
|
||||
return; // Not serializable, bail.
|
||||
}
|
||||
const nsCSSValue& areasValue =
|
||||
*data->ValueFor(eCSSProperty_grid_template_areas);
|
||||
const nsCSSValue& columnsValue =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue