Commit 5974e94
Bug 1950076 [wpt PR 50903] - [functions] Parameters with defaults need not be trailing (WPT), a=testonly
Automatic update from web-platform-tests
[functions] Parameters with defaults need not be trailing (WPT)
It's syntactically valid to define a function where a parameter without
a default appears after a parameter with a default, for example:
@function --foo(--x:1px, --y, --z:2px) { ... }
There is currently no way to actually invoke such a function while
making use of the non-trailing defaults, but apparently this may change
in the future if we rework how IACVT works for arguments.
Invoking --foo(var(--unknown), 42px) would make the containing
declaration invalid at computed-value time, but in the future
the argument may "capture" this invalid state, and instead trigger
the default.
Bug: 389974127
Change-Id: I8d7c41bde2401ac89ec0a011f098e6051772f7b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6281007
Commit-Queue: Anders Hartvoll Ruud <[email protected]>
Reviewed-by: Steinar H Gunderson <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1423827}
--
wpt-commits: f2615dc6260757b8eb634d19383184031c6e7022
wpt-pr: 509031 parent 4bfcb7d commit 5974e94
File tree
2 files changed
+18
-0
lines changed- testing/web-platform/tests/css/css-mixins
2 files changed
+18
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
681 | 695 | | |
682 | 696 | | |
683 | 697 | | |
| |||
0 commit comments