File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/AngleSharp.Css.Tests/Extensions Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,24 @@ public void SimpleSelectorNestingImplicitDeclarations()
43
43
Assert . AreEqual ( "1.4rem" , style . GetFontSize ( ) ) ;
44
44
}
45
45
46
+ [ Test ]
47
+ public void SimpleSelectorNestingImplicitDeclarationsWordBreak ( )
48
+ {
49
+ var source = @"<!doctype html><head><style>.foo {
50
+ color: green;
51
+ .bar {
52
+ word-break: break-word;
53
+ }
54
+ }</style></head><body class='foo'><div class='bar'>Larger and green" ;
55
+ var document = ParseDocument ( source ) ;
56
+ var window = document . DefaultView ;
57
+ var element = document . QuerySelector ( ".bar" ) ;
58
+ var styleCollection = window . GetStyleCollection ( ) ;
59
+ var style = styleCollection . GetDeclarations ( element ) ;
60
+
61
+ Assert . AreEqual ( "break-word" , style . GetWordBreak ( ) ) ;
62
+ }
63
+
46
64
[ Test ]
47
65
public void SimpleSelectorNestingExplicit ( )
48
66
{
You can’t perform that action at this time.
0 commit comments