diff --git a/apps/readest-app/src/__tests__/utils/inline-image-style.browser.test.ts b/apps/readest-app/src/__tests__/utils/inline-image-style.browser.test.ts
new file mode 100644
index 000000000..e8fa171b1
--- /dev/null
+++ b/apps/readest-app/src/__tests__/utils/inline-image-style.browser.test.ts
@@ -0,0 +1,110 @@
+import { describe, test, expect, afterEach } from 'vitest';
+
+import { applyImageStyle, getStyles, ThemeCode } from '@/utils/style';
+import { ViewSettings } from '@/types/book';
+import {
+ DEFAULT_BOOK_FONT,
+ DEFAULT_BOOK_LAYOUT,
+ DEFAULT_BOOK_LANGUAGE,
+ DEFAULT_BOOK_STYLE,
+ DEFAULT_VIEW_CONFIG,
+ DEFAULT_TTS_CONFIG,
+ DEFAULT_TRANSLATOR_CONFIG,
+ DEFAULT_ANNOTATOR_CONFIG,
+ DEFAULT_SCREEN_CONFIG,
+} from '@/services/constants';
+
+// An image next to text is taken for a glyph standing in for a character and
+// clamped to 1em. A title image the book sizes as a share of the line, like
+// `
`,
+ );
+
+ expect(img.getBoundingClientRect().height).toBeCloseTo(179, 0);
+ });
+
+ test('a glyph image next to text is still clamped to 1em', async () => {
+ const img = await render('', `
生字
`);
+
+ expect(img.classList.contains('has-text-siblings')).toBe(true);
+ expect(img.getBoundingClientRect().height).toBeCloseTo(20, 0);
+ });
+});
diff --git a/apps/readest-app/src/utils/style.ts b/apps/readest-app/src/utils/style.ts
index 5f40c7cc8..18e4f3dee 100644
--- a/apps/readest-app/src/utils/style.ts
+++ b/apps/readest-app/src/utils/style.ts
@@ -1733,7 +1733,13 @@ export const applyImageStyle = (document: Document) => {
const isInline = childNodes.every(
(node) => node.nodeType !== Node.ELEMENT_NODE || (node as Element).tagName !== 'BR',
);
- inlineWithText = hasTextSiblings && isInline;
+ // A glyph image standing in for a character is never sized as a share
+ // of the line; a title image the book sizes that way keeps it (#7039).
+ // computedStyleMap keeps the percentage that getComputedStyle resolves,
+ // also inside a calc() (serialized as e.g. `calc(30% - 1px)`).
+ const width = img.computedStyleMap?.().get('width');
+ const percentSized = !!width && width.toString().includes('%');
+ inlineWithText = hasTextSiblings && isInline && !percentSized;
if (inlineWithText) {
// Only supply Readest's baseline default when the book leaves
// vertical-align at its initial value; an author-set value (e.g. a CJK