AUTOMATIC DETECTION OF CSS CONFLICTS
First Claim
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, said UI constraints being used to restrict the UI of said widget;
running, by one or more processors, a page containing said widget;
performing, by one or more processors, automatic validation on each UI constraint based on a result of running the page; and
in response to deriving a UI constraint being violated from said validation, finding, by one or more processors, one or more of the second CSS rules that lead to violation of the UI constraint in a first set made up of the second CSS rules that override the first CSS rules.
1 Assignment
0 Petitions
Accused Products
Abstract
A method, system, and/or computer program product automatically detects CSS conflicts. The method comprises: receiving at least one 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, the UI constraints being used to restrict the UI of the widget; running a page containing the widget; performing automatic validation on each UI constraint based on the result of running the page; and in response to deriving a UI constraint being violated from the validation, finding one or more of the second CSS rules that lead to violation of the UI constraint in a first set made up of the second CSS rules that override the first CSS rules.
21 Citations
20 Claims
-
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, said UI constraints being used to restrict the UI of said widget; running, by one or more processors, a page containing said widget; performing, by one or more processors, automatic validation on each UI constraint based on a result of running the page; and in response to deriving a UI constraint being violated from said validation, finding, by one or more processors, one or more of the second CSS rules that lead to violation of the UI constraint in a first set made up of the second CSS rules that override the first CSS rules. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for automatic detection of Cascading Style Sheet (CSS) conflicts, the system comprising:
-
a reception hardware module configured to receive 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, said UI constraints being used to restrict the UI of said widget; a running hardware module configured to run a page containing said widget; a validation hardware module configured to perform automatic validation on each UI constraint based on a result of running the page; and a conflict source detection hardware module configured to, in response to deriving a UI constraint being violated from said validation, find one or more of the second CSS rules that lead to violation of the UI constraint in a first set made up of the second CSS rules that override the first CSS rules. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. A computer program product for automatically detecting Cascading Style Sheet (CSS) conflicts, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code readable and executable by a processor to perform a method comprising:
-
receiving 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, said UI constraints being used to restrict the UI of said widget; running a page containing said widget; performing automatic validation on each UI constraint based on a result of running the page; and in response to deriving a UI constraint being violated from said validation, finding one or more of the second CSS rules that lead to violation of the UI constraint in a first set made up of the second CSS rules that override the first CSS rules. - View Dependent Claims (19, 20)
-
Specification