Invention Grant
- Patent Title: Mechanism for setting ascent and baseline for HTML elements
- Patent Title (中): 设置HTML元素的上升和基线的机制
-
Application No.: US13955307Application Date: 2013-07-31
-
Publication No.: US09275022B2Publication Date: 2016-03-01
- Inventor: Luiz Amaral Franca Pereira Filho , Michael Owen Thomas , Igor Kopylov
- Applicant: Google Inc.
- Applicant Address: US CA Mountain View
- Assignee: Google Inc.
- Current Assignee: Google Inc.
- Current Assignee Address: US CA Mountain View
- Agency: Ropes & Gray LLP
- Main IPC: G06F17/00
- IPC: G06F17/00 ; G06F17/22 ; G06F17/21 ; G06F17/30

Abstract:
A method for rendering a document on a web browser includes receiving a portion of text within the document to be rendered on a web browser and determining a maximum height of the portion of text. A spacer element is inserted into the portion of text, where the spacer element has a height greater than the maximum height of the portion of text. A vertical position of the portion of text and the spacer element is adjusted by an offset, where a baseline of the portion of text is determined from the height of the spacer element and the offset. The portion of text is rendered on the web browser based at least in part on the baseline.
Public/Granted literature
- US20150039992A1 MECHANISM FOR SETTING ASCENT AND BASELINE FOR HTML ELEMENTS Public/Granted day:2015-02-05
Information query