Determining a high contrast display setting on a client device to process a web document
First Claim
1. A method comprising:
- creating a web document object;
assigning a first color value to a displayable property of the web document object, wherein the displayable property of the web document object comprises a color, the first color value being pre-determined to be different than a second color value that a client device would use to display the web document object on the client device when the client device is in a high contrast mode, said second value being a default high contrast value stored on the client device;
associating the web document object with a web document, wherein said associating causes the client device to generate a computed color value to use for display of the web document object in the web document, wherein the client device generates the computed color value as the first color value when the client device is not in high contrast mode and wherein the client device generates the computed color value as the second color value when the client device is in high contrast mode;
comparing the first color value to the computed color value of the web document object to determine whether the client device is in high contrast mode;
indicating that the client device is in high contrast mode if the first color value and the computed color value are different according to said comparing;
indicating that the client device is not in high contrast mode if the first color value and the computed color value are not different according to said comparing;
producing a result based, at least in part, on said comparing the first color value to the computed color value of the web document object, wherein the result indicates whether the client device is in high contrast mode;
storing the result in a variable; and
sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto the client device.
1 Assignment
0 Petitions
Accused Products
Abstract
Described herein are processes and devices that determine a high contrast setting on a client. One of the devices described is a high contrast mode detector. The high contrast mode detector creates an object in a web document and assigns a pre-determined value to a displayable property of the object. The predetermined value is different than a high contrast value that the client would use to display the web document object if a high contrast setting is enabled. The high contrast mode detector associates the object with the web document. The client generates a computed value used to display the object. If high contrast mode is enabled, the client applies the high contrast value as the computed value, otherwise the client applies the pre-determined value. The high contrast mode detector compares the pre-determined value to the computed value and detects the high contrast setting based on the comparison result.
8 Citations
12 Claims
-
1. A method comprising:
-
creating a web document object; assigning a first color value to a displayable property of the web document object, wherein the displayable property of the web document object comprises a color, the first color value being pre-determined to be different than a second color value that a client device would use to display the web document object on the client device when the client device is in a high contrast mode, said second value being a default high contrast value stored on the client device; associating the web document object with a web document, wherein said associating causes the client device to generate a computed color value to use for display of the web document object in the web document, wherein the client device generates the computed color value as the first color value when the client device is not in high contrast mode and wherein the client device generates the computed color value as the second color value when the client device is in high contrast mode; comparing the first color value to the computed color value of the web document object to determine whether the client device is in high contrast mode; indicating that the client device is in high contrast mode if the first color value and the computed color value are different according to said comparing; indicating that the client device is not in high contrast mode if the first color value and the computed color value are not different according to said comparing; producing a result based, at least in part, on said comparing the first color value to the computed color value of the web document object, wherein the result indicates whether the client device is in high contrast mode; storing the result in a variable; and sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto the client device. - View Dependent Claims (2, 3, 5)
-
-
4. The method of claim l further comprising:
processing any one or more of the web document and other web documents based on said high contrast mode of the client device, comprising selecting a first set of instructions to display the any one or more of the web document and other web documents when the client device is in high contrast mode and selecting a second set of instructions to display the any one or more of the web document and other web documents when the client device is not in high contrast mode.
-
6. A system comprising:
-
a processor; and a high contrast mode detection module configured to, create a web document object while processing a web document loaded into a web browser, assign a pre-determined color value to a displayable property of the web document object, wherein the displayable property comprises a color, associate the web document object to the web document generate a computed color display value for the web document object in response to the web document object being associated with the web document, compare the pre-determined color value to the computed color display value, generate a result based on comparison of the pre-determined color value to the computed color display value, wherein the result indicates whether the system is set to a high contrast setting, process one or more of the web document and other web documents based on the result, wherein the high contrast mode detection module is configured to process the one or more of the web document and other web documents based on the result being configured to select a first set of instructions to display the one or more of the web document and other web documents when the client device is in high contrast mode and select a second set of instructions to display the one or more of the web document and other web documents when the client device is not in high contrast mode, store the result in a variable, and send the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto the client device. - View Dependent Claims (7, 8)
-
-
9. A computer program product for determining whether a high contrast setting is enabled on a computer, the computer program product comprising:
-
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code configured to create a web document object using one or more instructions in the web document, assign a first color value to a displayable property of the web document object wherein the displayable property of the web document object comprises a color, the first color value being pre-determined to be different than a second color value that a client device would use to display the web document object on the client device when the client device is in a high contrast mode, said second color value being a default high contrast color value stored on the client device, associate the web document object with a web document, wherein said association of the web document object with the web document causes the client device to generate a computed color value to use for display of the web document object in the web document, wherein the client device generates the computed color value as the first color value when the client device is not in high contrast mode and wherein the client device generates the computed color value as the second color value when the client device is in high contrast mode, compare the first color value to the computed color value of the web document object to determine whether the client device is in high contrast mode, indicate that the client device is in high contrast mode if the first color value and the computed color value are different according to comparison of the first color value to the computed color value, indicate that the client device is not in high contrast mode if the first color value and the computed color value are not different according to said comparison of the first color value to the computed color value, process one or more of the web document and other web documents based on said high contrast mode of the client device, select a first set of instructions to display the one or more of the web document and other web documents when the client device is in high contrast mode, select a second set of instructions to display the one or more of the web document and other web documents when the client device is not in high contrast mode, produce a result that indicates whether the client device is in high contrast mode in response to said comparison of the first color value to the computed color value of the web document object, store the result in a variable, and send the variable to a server to process additional web documents before they are loaded onto the client device. - View Dependent Claims (10)
-
-
11. A method comprising:
-
creating a web document object; assigning a first color value to a displayable property of the web document object, the first color value being pre-determined to be different than a second color value that a client device would use to display the web document object on the client device when the client device is in a high contrast mode, said second color value being a default high contrast color value stored on the client device, wherein the first color value comprises a color that does not have a highly contrasting color opposite and wherein the second color value comprises a color with a highly contrasting color opposite; associating the web document object with a web document, wherein said associating causes the client device to generate a computed color value to use for display of the web document object in the web document, wherein the client device generates the computed color value as the first color value when the client device is not in high contrast mode and wherein the client device generates the computed color value as the second color value when the client device is in high contrast mode; comparing the first color value to the computed color value of the web document object to determine whether the client device is in high contrast mode, said comparing generating a result that correlates to a high contrast setting value that indicates whether the high contrast mode is enabled or disabled; processing a displayable portion of the web document based on the result of the comparing the first color value to the computer color value of the web document object, wherein processing the displayable portion of the web document comprises selecting a set of instructions embedded in the web document to apply to elements in the web document that do not display images or colors from a first cascading style sheet when the client device is in high contrast mode, wherein the set of instructions comprise any one or more of a second cascading style sheet and a set of image files; producing a result based, at least in part, on said comparing the first color value to the computed color value of the web document object, wherein the result indicates whether the client device is in high contrast mode; storing the result in a variable; and sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto the client device. - View Dependent Claims (12)
-
Specification