Skip to content

Commit c36f666

Browse files
committed
Add fontSize and lineHeight to list of props that should be viewport-scaled"
1 parent aadcab3 commit c36f666

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react-strict-dom/src/native/css/isLengthStyleKey.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const lengthStyleKeySet: Set<string> = new Set([
3333
'borderWidth',
3434
'bottom',
3535
'columnGap',
36+
'fontSize',
3637
'gap',
3738
'height',
3839
'inlineSize',
@@ -43,6 +44,7 @@ export const lengthStyleKeySet: Set<string> = new Set([
4344
'insetInline',
4445
'insetInlineEnd',
4546
'insetInlineStart',
47+
'lineHeight',
4648
'left',
4749
'margin',
4850
'marginBlock',

packages/react-strict-dom/tests/__snapshots__/html-test.native.js.snap-native

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ exports[`<html.*> viewport width lengths are scaled according to viewport width:
20512051
style={
20522052
{
20532053
"boxSizing": "content-box",
2054-
"fontSize": 24,
2054+
"fontSize": 18,
20552055
"lineHeight": 24,
20562056
"position": "static",
20572057
}

0 commit comments

Comments
 (0)