×

Automatic detection of CSS conflicts

  • US 9,767,083 B2
  • Filed: 06/23/2014
  • Issued: 09/19/2017
  • Est. Priority Date: 06/28/2013
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for automatic detection of Cascading Style Sheet (CSS) conflicts, the method comprising:

  • receiving, by one or more processors, at least one user interface (UI) constraint and at least one first CSS rule defined by a developer of a widget as well as at least one second CSS rule customized by a user of the widget, and wherein the at least one second CSS rule overrides the at least one first CSS rule, wherein said UI constraints are used to restrict the UI of said widget, wherein the UI constraints validate an appearance of the widget, wherein the at least one first CSS rule and the at least one second CSS rule control the appearance of the widget, wherein said UI constraint is represented by a code segment of simplified syntax found in a customized library of UI constraints;

    returning, by one or more processors, a Boolean value in response to the code segment being interpreted to identify the UI constraint by a call to the customized library;

    running, by one or more processors, a page containing said widget;

    combining, by one or more processors, various combinations of the second CSS rules that have the same properties as the first CSS rules and testing the various combinations of the second CSS rules with each UI constraint until at least one code segment of the UI constraint returns the Boolean value as false, indicating the UI constraint is violated, and the second CSS rules that override the first CSS rules are identified;

    performing, by one or more processors, automatic validation on each UI constraint based on a result of running the page using the combinations of the second CSS rules; and

    in response to deriving the UI constraint being violated from said automatic validation, finding, by one or more processors, one or more of the second CSS rules from the combinations of the second CSS rules that lead to the violation of the UI constraint.

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