Skip to content

Commit b182f06

Browse files
committed
Fix handling of font-* css that aren't being specially handled, like font-size-adjust
1 parent 40226d1 commit b182f06

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

testsuite/tests/util/Styles.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,9 @@ describe('CssStyles object', () => {
439439
'font-family': 'arial',
440440
'font-style': 'italic'
441441
});
442+
cssFontTest('font-size-adjust: none', {
443+
'font-size-adjust': 'none',
444+
});
442445
});
443446

444447
test('get()', () => {

ts/util/Styles.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ function splitSame(name: string) {
157157
* @param {string} name The style to be processed
158158
*/
159159
function combineSame(name: string) {
160+
if (!Styles.connect[name]) return;
160161
const children = [...Styles.connect[name].children];
161162
const value = this.styles[this.childName(name, children.shift())];
162163
for (const child of children) {

0 commit comments

Comments
 (0)