Generating CSS shorthand properties
First Claim
Patent Images
1. A system comprising:
- at least one processor of a computing device;
a memory of the computing device; and
at least one module loaded into the memory causing the at least one processor to;
receive CSS input;
generate a directed graph in memory from the CSS input;
receive user input changing at least one CSS statement in the CSS input;
modify the directed graph in memory to reflect the user input changing the at least one CSS statement;
convert between longhand and shorthand CSS properties by walking nodes in the modified directed graph;
generate CSS output, the CSS output minimizing a total number of properties in the generated CSS output.
2 Assignments
0 Petitions
Accused Products
Abstract
An authoring tool for CSS retains original user syntax and generates CSS markup that minimizes a total number of properties in the markup. A directed graph is generated from the original user markup. Nodes in the graph can be collapsed and expanded to convert between longhand and shorthand properties. User input updating property values can result in the generation of compact CSS code that retains syntactical features of the original user syntax.
24 Citations
20 Claims
-
1. A system comprising:
-
at least one processor of a computing device; a memory of the computing device; and at least one module loaded into the memory causing the at least one processor to; receive CSS input; generate a directed graph in memory from the CSS input; receive user input changing at least one CSS statement in the CSS input; modify the directed graph in memory to reflect the user input changing the at least one CSS statement; convert between longhand and shorthand CSS properties by walking nodes in the modified directed graph; generate CSS output, the CSS output minimizing a total number of properties in the generated CSS output. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method of generating CSS markup comprising:
-
receiving at least one template for collapsing properties into shorthand properties, the at least one template comprising a directed graph created from characteristics of CSS language rules; receiving by a processor of a computer, user input comprising CSS markup statements; generating a directed graph from the received CSS markup statements; receiving further user input changing at least one CSS markup statement in the received CSS markup statements; in response to receiving the further user input, changing at least one node in the directed graph generated from the received CSS markup statements to create a modified direct graph; converting between longhand and shorthand CSS properties in the CSS markup statements by walking nodes in the at least one template and extracting values from the directed graph generated from the received CSS markup statements; generating at least one updated CSS markup statement, the at least one updated CSS markup statement minimizing a total number of properties appearing in the at least one updated CSS markup statement. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer-readable storage medium comprising computer-executable instructions which when executed cause at least one processor of a computing device to:
-
receive a first set of CSS statements; generate a directed graph from the received first set of CSS statements, the directed graph comprising internal and external nodes, anode of the directed graph representing a shorthand property component, a terminal property component comprising symbols that are not replaceable by other symbols, a shorthand property or a terminal property comprising symbols that are not replaceable by other properties; receive user input updating a value of a property in the received CSS statement; convert between longhand and shorthand CSS properties in the CSS markup statements by walking nodes in at least one template comprising a directed graph created based on characteristics of CSS and extracting values from the directed graph generated from the received CSS markup statements; generate an updated CSS statement that preserves syntax of the received CSS statement, the updated CSS statement minimizing a total number of properties appearing in the updated CSS statement. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification