×

Fast CSS parser engineered for runtime use

  • US 9,519,630 B2
  • Filed: 06/30/2014
  • Issued: 12/13/2016
  • Est. Priority Date: 06/30/2014
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method of transforming a cascading style sheet (“

  • CSS”

    ) codebase for a website, including;

    using a processor, accessing in memory a CSS codebase that includes target tokens in customizable segments to be customized, responsive to an input invoking a module that uses the CSS codebase;

    selecting at least one set of customization functions among multiple alternative sets of customization functions that transform the target tokens within the customizable segments of the CSS codebase;

    scanning the CSS codebase and locating the customizable segments of the CSS codebase that include the target tokens and at least a block of related key-value pairs, customization of the customizable segments of the CSS codebase being located based at least in part on an attribute of a user;

    parsing, at runtime, only the located customizable segments of the CSS codebase to produce segment parse trees based on the parsed customizable segments; and

    transforming the target tokens from the segment parse trees according to the selected set of customization functions and outputting a customized codebase to be used with the module invoked by the input.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×