AngleSharp / AngleSharp.Css

:angel: Library to enable support for cascading stylesheets in AngleSharp.

Home Page:https://anglesharp.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Read/Write of styles gap and grid-gap swap the order of col and row

danielhazel opened this issue · comments

Bug Report

Description

A style read as:

grid-gap: 10px 80px;

is written as:

grid-gap: 80px 10px;

Similarly, a style read as:

gap: 10px 80px;

is written as:

gap: 80px 10px;

Possible Solution

row and col are incorrectly assigned here:

https://github.com/AngleSharp/AngleSharp.Css/blob/main/src/AngleSharp.Css/Declarations/GridGapDeclaration.cs#L33

and here:

https://github.com/AngleSharp/AngleSharp.Css/blob/main/src/AngleSharp.Css/Declarations/GapDeclaration.cs#L33

PR welcome.