arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.27k stars 261 forks source link

--keycap-height issues in iframe #2364

Open gunnarmein-ts opened 2 months ago

gunnarmein-ts commented 2 months ago

Description

When I have a mathfield in an iframe, in sandboxed mode for the keyboard, setting --keycap-height has no effect, but --keycap-font-size works.

Steps to Reproduce

Unzip the attachment, open test2.html test.zip

Actual Behavior

Keycaps are usual size, font is small

Expected Behavior

keycaps and font should be small

Environment

Don't know if this is a regression. macOS 14.4.1, Chrome up to date, also in Safari 17.4.1. Mathlive 98.6.

gunnarmein-ts commented 2 months ago

Work-around: .MLK__rows > .MLK__row div { --_keycap-height: 15px; }