IP Library Granted Patent US 9,600,458
Granted Patent B2
US 9,600,458 · App. 13/517,802 · Granted Mar 21, 2017

Overriding style rules for styling web elements

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,600,458
App. No.
13/517,802
Granted
Mar 21, 2017
Kind
B2
Abstract

Methods and systems are provided for styling elements of a web document at a time of rendering the web document. In one embodiment, a method comprises: performing steps on a processor. The steps comprise: identifying a rule associated with a property of an element of the web document; determining whether the rule is to be grouped with multiple elements of the web document; generating an overriding rule when the rule is associated with multiple elements of the web document; and updating a style sheet based on the overriding rule.

Claims (78)

1. A method of styling elements of a web document at a time of rendering the web document, comprising:

performing on a processor:

for each element of a plurality of elements in the web document:

determining an associated rule list for the element in the web document;

determining whether one or more rules for the element exists in the associated rule list;

generating the one or more rules for the element when no rule for the element is determined to exist in the associated rule list;

applying one or more filters to the one or more rules, the one or more filters comprising at least one of an important filter, a highest priority filter, and a single target filter;

determining a dominant rule from the one or more rules for each property of a plurality of properties in the element based on the one or more filters; and

determining a grouping of dominant rules from the plurality of properties;

determining a grouping of the plurality of elements;

generating a group overriding rule based on the grouping of dominant rules from each element in the grouping of the plurality of elements; and

updating a style sheet based on the group overriding rule.

2. The method of claim 1 , wherein the generating the group overriding rule comprises modifying a selector of the dominant rule.

3. The method of claim 2 , further comprising updating the web document based on the modifying of the selector of the dominant rule.

4. The method of claim 2 , wherein the modifying the selector comprises:

generating a new class or attribute selector; and

modifying the selector to include the new class or attribute selector.

5. The method of claim wherein the modifying the selector comprises:

generating an overriding selector for each element of the plurality of elements; and

providing each of the overriding selectors in the selector.

6. The method of claim wherein the generating the overriding selector comprises:

determining an overriding selector for each property of the plurality of properties; and

selecting one of the overriding selectors with highest specificity among the overriding selectors for the plurality of properties.

7. The method of claim 6 , further comprising:

identifying the dominant rule based on a plurality of rules, and

wherein the generating the overriding selector is based on the dominant rule.

8. The method of claim 1 , further comprising:

determining whether to group a property of the plurality of properties across the plurality of elements for applying a same rule to the property in each of the plurality of elements; and

generating an overriding selector for the property when the property is determined to be grouped across the plurality of elements.

9. The method of claim 1 , further comprising:

formatting the plurality of elements based on the updated style sheet; and

providing for display a rendering of the web document with the formatted plurality of elements.

10. A system for styling elements of a web document at a time of rendering the web document, comprising:

one or more processors; and

a machine-readable medium comprising instructions stored therein, which when executed by the processors, cause the processors to perform operations comprising:

for each element of a plurality of elements of the web document:

determining an associated rule list for the element in the web document;

determining whether one or more rules for the element exists in the associated rule list;

generating the one or more rules for the element when no rule for the element is determined to exist in the associated rule list;

applying one or more filters to the one or more rules, the one or more filters comprising at least one of an important filter, a highest priority filter, and a single target filter;

determining a dominant rule from the one or more rules for each property of a plurality of properties in the element based on the one or more filters; and

determining a grouping of dominant rules from the plurality of properties;

determining a grouping of the plurality of elements;

generating a group overriding rule based on the grouping of dominant rules from each element in the grouping of the plurality of elements; and

updating a style sheet based on the group overriding rule.

11. The system of claim 10 , wherein generating the group overriding rule comprises modifying a selector of the dominant rule.

12. The system of claim 11 , wherein the operations further comprise updating the web document based on the modifying of the selector of the dominant rule.

13. The system of claim 11 , wherein modifying the selector comprises:

generating a new class or attribute selector; and

modifying the selector to recite the new class or attribute selector.

14. The system of claim 11 , wherein modifying the selector comprises:

generating an overriding selector for each element of the plurality of elements; and

providing each of the overriding selectors in the selector.

15. The system of claim 14 , wherein generating the overriding selector comprises:

determining the overriding selector for each property of the plurality of properties; and

selecting one of the overriding selectors with highest specificity among the overriding selectors for the plurality of properties.

16. The system of claim 15 , further comprising identifying the dominant rule based on a plurality of rules, and wherein the overriding selector is determined based on the dominant rule.

17. The system of claim 11 , wherein the operations further comprise:

determining whether to group a property of the plurality of properties across the plurality of elements for applying a same rule to the property in each of the plurality of elements; and

generating an overriding selector for the property when the property is determined to be grouped across the plurality of elements.

18. The system of claim 11 , wherein the operations further comprise:

formatting the plurality of elements based on the updated style sheet; and

providing for display a rendering of the web document with the formatted plurality of elements.

19. A computer program product for styling elements of a web document at a time of rendering the web document, the computer program product comprising:

a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising:

for each element of a plurality of elements of the web document:

determining an associated rule list for the element in the web document;

determining whether one or more rules for the element exists in the associated rule list;

generating the one or more rules for the element when no rule for the element is determined to exist in the associated rule list;

applying one or more filters to the one or more rules, the one or more filters comprising at least one of an important filter, a highest priority filter, and a single target filter;

determining a dominant rule from the one or more rules for each property of a plurality of properties in the element based on the one or more filters; and

determining a grouping of dominant rules from the plurality of properties;

determining a grouping of the plurality of elements;

generating a group overriding rule based on the grouping of dominant rules from each element in the grouping of the plurality of elements; and

updating a style sheet based on the group overriding rule.

20. The computer program product of claim 19 , wherein the method further comprises:

determining whether to group a property of the plurality of properties across the plurality of elements for applying a same rule to the property in each of the plurality of elements; and

generating an overriding selector for the property when the property is determined to be grouped across the plurality of elements.

Assignments (4)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 19, 2014
From: MOTOROLA MOBILITY LLC
To: GOOGLE TECHNOLOGY HOLDINGS LLC
Reel/Frame 034296/0001 →
CHANGE OF NAME Recorded Jun 2, 2014
From: MOTOROLA MOBILITY, INC.
To: MOTOROLA MOBILITY LLC
Reel/Frame 033075/0872 →
CHANGE OF NAME Recorded Jul 10, 2012
From: MOTOROLA MOBILITY, INC.
To: MOTOROLA MOBILITY LLC
Reel/Frame 028561/0557 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 14, 2012
From: GUZMAN, ERIC; MARQUEZ, JOSE ANTONIO
To: MOTOROLA MOBILITY, INC.
Reel/Frame 028373/0984 →