-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from LilithSilver/fix-justify-content
Fix justify content incorrectly marked as shorthand
- Loading branch information
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Linq; | ||
using Xunit; | ||
|
||
namespace ExCSS.Tests.PropertyTests | ||
{ | ||
public class FlexPropertyTests | ||
{ | ||
|
||
[Fact] | ||
public void JustifyAlign_Parses() | ||
{ | ||
string css = """ | ||
html { | ||
justify-content: center; | ||
align-items: center; | ||
align-content: center; | ||
align-self: center; | ||
} | ||
"""; | ||
var stylesheet = new StylesheetParser().Parse(css); | ||
|
||
var info = stylesheet.StyleRules.First() as ExCSS.StyleRule; | ||
|
||
Assert.Equal(@"center", info.Style.AlignItems); | ||
Assert.Equal(@"center", info.Style.AlignContent); | ||
Assert.Equal(@"center", info.Style.AlignSelf); | ||
Assert.Equal(@"center", info.Style.JustifyContent); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters