Commit 8c8b2f7
feat(compiler): Support css var namespacing in properties (#68846)
Adds support for namespacing css variables in style properties. Behaves
as you'd expect following the implementation for stylesheets generally.
This change also moves the error message into a util function since we
now need to produce the same error in three places.
PR Close #688461 parent af5e4e1 commit 8c8b2f7Copy full SHA for 8c8b2f7
10 files changed
+164-35Lines changed: 164 additions & 35 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- goldens/public-api/platform-browser
- packages
- compiler-cli/test/compliance/test_cases/r3_view_compiler_styling
- host_bindings
- style_bindings
- compiler/src
- template_parser
- template/pipeline/src/phases
- platform-browser
- src/dom
- test/dom
Expand file treeCollapse file tree
Open diff view settings
Collapse file
goldens/public-api/platform-browser/index.api.md
Copy file name to clipboardExpand all lines: goldens/public-api/platform-browser/index.api.md+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
168 | 168 | |
169 | 169 | |
170 | 170 | |
171 | | - |
| 171 | + |
172 | 172 | |
173 | 173 | |
174 | 174 | |
|
Collapse file
packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js
Copy file name to clipboardExpand all lines: packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/css_custom_properties.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
Collapse file
packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js
Copy file name to clipboardExpand all lines: packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/css_custom_properties.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
| 7 | + |
8 | 8 | |
9 | 9 | |
Collapse file
packages/compiler/src/shadow_css.ts
Copy file name to clipboardExpand all lines: packages/compiler/src/shadow_css.ts+11-16Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| ||
1048 | 1049 | |
1049 | 1050 | |
1050 | 1051 | |
| 1052 | + |
| 1053 | + |
| 1054 | + |
| 1055 | + |
| 1056 | + |
| 1057 | + |
| 1058 | + |
| 1059 | + |
| 1060 | + |
1051 | 1061 | |
1052 | 1062 | |
1053 | 1063 | |
1054 | | - |
1055 | | - |
1056 | | - |
1057 | | - |
1058 | | - |
1059 | | - |
1060 | | - |
1061 | | - |
1062 | | - |
1063 | | - |
1064 | | - |
1065 | | - |
1066 | | - |
1067 | | - |
1068 | | - |
1069 | | - |
| 1064 | + |
1070 | 1065 | |
1071 | 1066 | |
1072 | 1067 | |
|
Collapse file
packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.ts
Copy file name to clipboardExpand all lines: packages/compiler/src/template/pipeline/src/phases/host_style_property_parsing.ts+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
12 | 13 | |
13 | 14 | |
14 | 15 | |
| ||
40 | 41 | |
41 | 42 | |
42 | 43 | |
| 44 | + |
| 45 | + |
43 | 46 | |
44 | 47 | |
45 | 48 | |
|
Collapse file
packages/compiler/src/template_parser/binding_parser.ts
Copy file name to clipboardExpand all lines: packages/compiler/src/template_parser/binding_parser.ts+11-2Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
| ||
594 | 594 | |
595 | 595 | |
596 | 596 | |
597 | | - |
| 597 | + |
| 598 | + |
| 599 | + |
| 600 | + |
| 601 | + |
| 602 | + |
| 603 | + |
| 604 | + |
| 605 | + |
| 606 | + |
598 | 607 | |
599 | 608 | |
600 | 609 | |
|
Collapse file
packages/compiler/src/util.ts
Copy file name to clipboardExpand all lines: packages/compiler/src/util.ts+22Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
153 | 153 | |
154 | 154 | |
155 | 155 | |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
Collapse file
packages/platform-browser/src/dom/dom_renderer.ts
Copy file name to clipboardExpand all lines: packages/platform-browser/src/dom/dom_renderer.ts+28-10Lines changed: 28 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
81 | | - |
| 81 | + |
| 82 | + |
| 83 | + |
82 | 84 | |
83 | 85 | |
84 | 86 | |
85 | 87 | |
86 | | - |
87 | | - |
| 88 | + |
| 89 | + |
88 | 90 | |
89 | 91 | |
90 | | - |
| 92 | + |
91 | 93 | |
92 | 94 | |
93 | 95 | |
94 | | - |
| 96 | + |
| 97 | + |
95 | 98 | |
96 | 99 | |
97 | 100 | |
| ||
177 | 180 | |
178 | 181 | |
179 | 182 | |
180 | | - |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
181 | 190 | |
182 | 191 | |
183 | 192 | |
| ||
304 | 313 | |
305 | 314 | |
306 | 315 | |
| 316 | + |
307 | 317 | |
308 | 318 | |
309 | 319 | |
| ||
412 | 422 | |
413 | 423 | |
414 | 424 | |
415 | | - |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
416 | 430 | |
417 | 431 | |
418 | 432 | |
419 | 433 | |
420 | 434 | |
421 | 435 | |
422 | 436 | |
423 | | - |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
424 | 442 | |
425 | 443 | |
426 | 444 | |
| ||
538 | 556 | |
539 | 557 | |
540 | 558 | |
541 | | - |
| 559 | + |
542 | 560 | |
543 | 561 | |
544 | 562 | |
| ||
628 | 646 | |
629 | 647 | |
630 | 648 | |
631 | | - |
| 649 | + |
632 | 650 | |
633 | 651 | |
634 | 652 | |
|
Collapse file
packages/platform-browser/test/dom/css_var_namespacer_spec.ts
Copy file name to clipboardExpand all lines: packages/platform-browser/test/dom/css_var_namespacer_spec.ts+16-1Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
| ||
14 | 15 | |
15 | 16 | |
16 | 17 | |
17 | | - |
| 18 | + |
18 | 19 | |
19 | 20 | |
20 | 21 | |
21 | 22 | |
22 | 23 | |
23 | 24 | |
24 | 25 | |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
25 | 40 | |
26 | 41 | |
27 | 42 | |
|
Collapse file
packages/platform-browser/test/dom/dom_renderer_spec.ts
Copy file name to clipboardExpand all lines: packages/platform-browser/test/dom/dom_renderer_spec.ts+70-3Lines changed: 70 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
361 | 361 | |
362 | 362 | |
363 | 363 | |
364 | | - |
| 364 | + |
365 | 365 | |
366 | 366 | |
367 | 367 | |
| ||
384 | 384 | |
385 | 385 | |
386 | 386 | |
387 | | - |
| 387 | + |
388 | 388 | |
389 | 389 | |
390 | 390 | |
| ||
407 | 407 | |
408 | 408 | |
409 | 409 | |
410 | | - |
| 410 | + |
411 | 411 | |
412 | 412 | |
413 | 413 | |
| ||
498 | 498 | |
499 | 499 | |
500 | 500 | |
| 501 | + |
| 502 | + |
| 503 | + |
| 504 | + |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
| 520 | + |
| 521 | + |
| 522 | + |
| 523 | + |
| 524 | + |
| 525 | + |
| 526 | + |
| 527 | + |
| 528 | + |
| 529 | + |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
| 539 | + |
| 540 | + |
| 541 | + |
| 542 | + |
| 543 | + |
| 544 | + |
| 545 | + |
| 546 | + |
| 547 | + |
| 548 | + |
| 549 | + |
| 550 | + |
| 551 | + |
| 552 | + |
| 553 | + |
| 554 | + |
| 555 | + |
| 556 | + |
| 557 | + |
| 558 | + |
| 559 | + |
| 560 | + |
| 561 | + |
| 562 | + |
| 563 | + |
| 564 | + |
| 565 | + |
| 566 | + |
| 567 | + |
501 | 568 | |
502 | 569 | |
503 | 570 | |
|
0 commit comments