mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +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
|
|
@ -9728,13 +9728,6 @@ CSSParserImpl::ParseGrid()
|
|||
return true;
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css-grid/#grid-shorthand
|
||||
// "Also, the gutter properties are reset by this shorthand,
|
||||
// even though they can't be set by it."
|
||||
value.SetFloatValue(0.0f, eCSSUnit_Pixel);
|
||||
AppendValue(eCSSProperty_row_gap, value);
|
||||
AppendValue(eCSSProperty_column_gap, value);
|
||||
|
||||
// [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>
|
||||
auto res = ParseGridShorthandAutoProps(NS_STYLE_GRID_AUTO_FLOW_ROW);
|
||||
if (res == CSSParseResult::Error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue