@taiga-ui/font-watcher 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -21,6 +21,7 @@ function tuiFontSizeWatcher(callback, iframe = globalThis.document.createElement
21
21
  const observer = new ResizeObserver(() => callback(doc?.body.offsetHeight || 0));
22
22
  Object.assign(iframe.style, IFRAME);
23
23
  Object.assign(doc?.body.style || {}, BODY);
24
+ doc?.head.insertAdjacentHTML('beforeend', '<meta name="text-scale" content="scale">');
24
25
  doc?.documentElement.style.setProperty('font', '-apple-system-body');
25
26
  doc?.body.insertAdjacentText('beforeend', '.'.repeat(1000));
26
27
  observer.observe(doc?.body || iframe);
package/index.esm.js CHANGED
@@ -19,6 +19,7 @@ function tuiFontSizeWatcher(callback, iframe = globalThis.document.createElement
19
19
  const observer = new ResizeObserver(() => callback(doc?.body.offsetHeight || 0));
20
20
  Object.assign(iframe.style, IFRAME);
21
21
  Object.assign(doc?.body.style || {}, BODY);
22
+ doc?.head.insertAdjacentHTML('beforeend', '<meta name="text-scale" content="scale">');
22
23
  doc?.documentElement.style.setProperty('font', '-apple-system-body');
23
24
  doc?.body.insertAdjacentText('beforeend', '.'.repeat(1000));
24
25
  observer.observe(doc?.body || iframe);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/font-watcher",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Taiga UI font watcher",
5
5
  "repository": {
6
6
  "type": "git",