Commit cea80cc
committed
Fix UnknownProperty being used for known properties
If the parser options IncludeUnknownDeclarations or AllowInvalidValues are set to true, StylesheetComposer will incorrectly use UnknownProperty for everything, even when the property name in question is a known one.
Fix by first trying to create the property with the specified name and only falling back to UnknownProperty if the created property is null and one of IncludeUnknownDeclarations or AllowInvalidValues are set.1 parent a0f9914 commit cea80cc
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1016 | 1025 | | |
1017 | 1026 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
627 | 630 | | |
628 | 631 | | |
629 | 632 | | |
| |||
0 commit comments