Commit a3413ab
authored
Refactor to prepare for addressing shorthand property issues
Introduce a mechanism to auto-generate CSS property definitions in propertyDefinitions.js, and refactor the codebase to use these generated definitions. This will be used eventually in jsdom to replace propertiesWithResolvedValueImplemented in jsdom's lib/jsdom/living/helpers/style-rules.js, allowing jsdom to delegate property metadata management entirely to cssstyle.
Refactor normalize.js into smaller functions with clearer roles.
Replace string literals with constants where possible.
This work is mostly preparatory, but it does fix web-platform-tests/to-upstream/css/cssom/style-border-shorthand-var.html.
Follow-up work will implement the complex logic for expanding shorthands into longhands.1 parent 0a71683 commit a3413ab
5 files changed
Lines changed: 1288 additions & 1097 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
0 commit comments