Commit 6afcb8d
committed
Allow replacing <dimension> with a numeric substitution
Before this commit, math functions could only replace CSS dimension types like
<length>, <angle>, etc... which are all defined as <dimension>. This type was
directly used for type checking the math function.
But they must also be allowed to replace a standalone <dimension> in <mf-value>
and since f2f2a0f, in <progress-source> and <input-position>.
<mf-value> did not need type checking because it is entirely validated against
the grammar of the corresponding <mf-name> in a postprocessing action.
<progress-source> and <input-position> have <dimension> replaced with <calc-sum>
type checked in a postprocessing action. This will be removed in next commit.
A math function replacing a standalone <dimension> must simply match one the CSS
dimension types that a math function can resolve to.1 parent d1f28b2 commit 6afcb8d
2 files changed
+46
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
1568 | 1571 | | |
1569 | 1572 | | |
1570 | 1573 | | |
1571 | 1574 | | |
1572 | 1575 | | |
1573 | 1576 | | |
1574 | 1577 | | |
1575 | | - | |
1576 | | - | |
1577 | 1578 | | |
1578 | 1579 | | |
1579 | 1580 | | |
| |||
1641 | 1642 | | |
1642 | 1643 | | |
1643 | 1644 | | |
| 1645 | + | |
1644 | 1646 | | |
1645 | 1647 | | |
1646 | 1648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
40 | 69 | | |
41 | 70 | | |
42 | 71 | | |
| |||
46 | 75 | | |
47 | 76 | | |
48 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
49 | 84 | | |
50 | 85 | | |
51 | 86 | | |
| |||
74 | 109 | | |
75 | 110 | | |
76 | 111 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
85 | 117 | | |
86 | 118 | | |
87 | 119 | | |
| |||
176 | 208 | | |
177 | 209 | | |
178 | 210 | | |
| 211 | + | |
179 | 212 | | |
180 | 213 | | |
181 | 214 | | |
| |||
0 commit comments