# US 2015/0039992 A1 · Mechanism for setting ascent and baseline for html elements

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0039992 A1
- Document ID: US20150039992A1
- Status: Published application
- Kind: A1
- Application number: 13/955,307
- Filed: 2013-07-31
- Published: 2015-02-05
- Earliest claimed: 2013-07-31
- Assignees: Google Inc.
- Applicants: Google Inc.
- Inventors: Luiz Amaral Franca Pereira Filho; Michael Owen Thomas; Igor Kopylov
- Web page: https://patentgrep.com/patent/US20150039992A1

## CPC

- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

A method for rendering a document on a web browser, the method comprising:
receiving a portion of text within the document to be rendered on a web browser;
determining a maximum height of the portion of text;
inserting into the portion of text a spacer element with a height greater than the maximum height of the portion of text;
adjusting, by an offset, a vertical position of the portion of text and the spacer element, wherein a baseline of the portion of text is determined from the height of the spacer element and the offset; and
rendering the portion of text on the web browser based at least in part on the baseline.

### Claim 2 (depends on 1)

The method of claim 1, wherein the portion of text is a single line of text.

### Claim 3 (depends on 1)

The method of claim 1, wherein the portion of text includes one or more font types.

### Claim 4 (depends on 1)

The method of claim 1, wherein the portion of text includes one or more font sizes.

### Claim 5 (depends on 1)

The method of claim 1, wherein the spacer element has a width of zero.

### Claim 6 (depends on 1)

The method of claim 1, wherein the height of the spacer element is a multiple of the maximum height of the portion of text.

### Claim 7 (depends on 1)

The method of claim 1, wherein the vertical position of the portion of text and the spacer element is defined by a top margin.

### Claim 8 (depends on 7)

The method of claim 7, wherein the offset is a negative value applied to the top margin.

### Claim 9 (depends on 1)

The method of claim 1, wherein the document is stored on a cloud computing service.

### Claim 10 (depends on 1)

The method of claim 1, wherein the document is a word processing document.

### Claim 11

A method for providing a document stored on a cloud computing service to a client computer for rendering, the method comprising:
storing a document on the cloud computing service;
storing a rendering function for rendering the document, wherein the rendering function comprises instructions to:
determine a maximum height of a portion of text in the document;
insert into the portion of text a spacer element with a height greater than the maximum height of the portion of text;
adjust, by an offset, a vertical position of the portion of text and the spacer element, wherein a baseline of the portion of text is determined from the height of the spacer element and the offset; and
render the portion of text on the web browser based at least in part on the baseline; and
sending the document and the rendering function to a client computer.

### Claim 12 (depends on 11)

The method of claim 11, wherein the portion of text is a single line of text.

### Claim 13 (depends on 11)

The method of claim 11, wherein the portion of text includes one or more font types.

### Claim 14 (depends on 11)

The method of claim 11, wherein the portion of text includes one or more font sizes.

### Claim 15 (depends on 11)

The method of claim 11, wherein the spacer element has a width of zero.

### Claim 16 (depends on 11)

The method of claim 11, wherein the height of the spacer element is a multiple of the maximum height of the portion of text.

### Claim 17 (depends on 11)

The method of claim 11, wherein the vertical position of the portion of text and the spacer element is defined by a top margin.

### Claim 18 (depends on 17)

The method of claim 17, wherein the offset is a negative value applied to the top margin.

### Claim 19 (depends on 11)

The method of claim 11, wherein the document is a word processing document.

### Claim 20 (depends on 11)

The method of claim 11, wherein the rendering function is implemented in JavaScript.

### Claim 21 (depends on 11)

The method of claim 11, wherein the document comprises a plurality of portions of text, and each portion of text is rendered using the rendering function.

### Claim 22

A system for rendering a document stored on a cloud computing service, the system comprising:
a cloud computing service, wherein the cloud computing service is configured to:
communicate with a plurality of client computers over a communication network;
store a document on the cloud computing service;
store a rendering function for rendering the document, wherein the rendering function comprises instructions to:
determine a maximum height of a portion of text in the document;
insert into the portion of text a spacer element with a height greater than the maximum height of the portion of text;
adjust, by an offset, a vertical position of the portion of text and the spacer element, wherein a baseline of the portion of text is determined from the height of the spacer element and the offset; and
render the portion of text on the web browser based at least in part on the baseline; and
send the document and the rendering function to a first client computer in the plurality of client computers.

### Claim 23 (depends on 22)

The system of claim 22, wherein the portion of text is a single line of text.

### Claim 24 (depends on 22)

The system of claim 22, wherein the portion of text includes one or more font types.

### Claim 25 (depends on 22)

The system of claim 22, wherein the portion of text includes one or more font sizes.

### Claim 26 (depends on 22)

The system of claim 22, wherein the spacer element has a width of zero.

### Claim 27 (depends on 22)

The system of claim 22, wherein the vertical position of the portion of text and the spacer element is defined by a top margin.

### Claim 28 (depends on 27)

The system of claim 27, wherein the offset is a negative value applied to the top margin.

### Claim 29 (depends on 22)

The system of claim 22, wherein the document is a word processing document.

### Claim 30 (depends on 22)

The system of claim 22, wherein the rendering function is implemented in JavaScript.

### Claim 31 (depends on 22)

The system of claim 22, wherein the document comprises a plurality of portions of text, and each portion of text is rendered using the rendering function.
