From 2394caa545f2a119de8804df57c552c65913f9e2 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 3 Mar 2021 12:59:37 -0500 Subject: [PATCH] fix: HTML Validation issues --- .../index.html | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/files/en-us/web/accessibility/understanding_colors_and_luminance/index.html b/files/en-us/web/accessibility/understanding_colors_and_luminance/index.html index 800443b9c6e8442..74ecbc1bde939f2 100644 --- a/files/en-us/web/accessibility/understanding_colors_and_luminance/index.html +++ b/files/en-us/web/accessibility/understanding_colors_and_luminance/index.html @@ -67,7 +67,7 @@

CMYK subtractive model

CMYK is another form of color model, known as a subtractive model. Here, the cyan, magenta, yellow, black inks remove certain wavelengths of light, reflecting back only the narrow range each is associated with. In this article we will be focusing on displayed web content, and so we discuss mainly the RGB color model.

See this overview for a deeper dive into how the eye and vision system functions. +">a deeper dive into how the eye and vision system functions.

Perception of Color and Contrast

@@ -94,7 +94,7 @@

The context of contrast

Readability Contrast

-

For web content, readability is one very important goal. Readability is not the same as legibility. Readability is the point where a particular user can read at their best speed and best comprehension. Legibility refers to the "just noticeable difference" (JND) where a figure such as a letter just becomes discernible.

+

For web content, readability is one very important goal. Readability is not the same as legibility. Readability is the point where a particular user can read at their best speed and best comprehension. Legibility refers to the "just noticeable difference" (JND) where a figure such as a letter just becomes discernible.

For normal vision, the contrast sensitivity (CS) JND legibility level is about 1%, while someone with a mild impairment might have a CS of 3%. 10% would be represent profound impairment in the area of low vision. These levels are for large, bold fonts on a special chart used for testing contrast sensitivity.

@@ -126,7 +126,7 @@

Text Size Guidelines

CSS and the sRGB Colorspace

-

The W3.org defines the sRGB colorspace as the default for web content. The MDN page on <color> says "The CSS color data type represents a color in the sRGB colorspace." +

The W3.org defines the sRGB colorspace as the default for web content. The MDN page on <color> says "The CSS color data type represents a color in the sRGB colorspace."

CSS Color Level 3 notations:

@@ -163,7 +163,7 @@

CSS Color Level 3 notations:

We can also set the sRGB values directly by an 8bit integer number, which means a whole number from 0 to 255. This is the number of values available in an 8bit byte, which is how numbers are often stored in a computer.

-

Shown after that, we can use a hex value. Hex value means "hexadecimal," where the 0-255 integer is represented by two digits that each range from 0-15. As there are no Arabic numerals above 9, we use the letters a-f to represent 10-15. We add the '#' symbol to indicate the value is hex. Thus, #ff = 255. +

Shown after that, we can use a hex value. Hex value means "hexadecimal," where the 0-255 integer is represented by two digits that each range from 0-15. As there are no Arabic numerals above 9, we use the letters a-f to represent 10-15. We add the '#' symbol to indicate the value is hex. Thus, #ff = 255.

In some of the previous examples, you'll notice that some have a fourth value which is called “alpha”, the A in RGBA. The alpha channel is not a color channel, but defines transparency in terms of the opacity value of the color. A higher value means the color is more opaque therefore less transparent. In the examples above, the alpha value is set to half or 50% opaque.

@@ -195,7 +195,7 @@

Deeper dive into spectral sensiti

At 611nm, the red primary in an sRGB monitor is spectrally distant from the L cone's peak sensitivity at 565nm. But the sRGB green primary is 549nm, in between the L cone peak and the M cone's peak at 540nm. This explains why the green primary makes up such a large portion of total luminance on a monitor.

-

Handprint.com has an excellent deep dive into the nuances of spectral response, luminance, and color perception.

+

Handprint.com has an excellent deep dive into the nuances of spectral response, luminance, and color perception.

The value of luminance values

@@ -228,7 +228,7 @@

Dark adaptation

Light adaptation

-

This is also known as photopic or "daylight vision." Here the eye is adapted to much higher levels of light, typically a luminance greater than 8 cd/m2. The equates to a CSS value of between #444 and #555 for a typical desktop monitor.

+

This is also known as photopic or "daylight vision." Here the eye is adapted to much higher levels of light, typically a luminance greater than 8 cd/m2. The equates to a CSS value of between #444 and #555 for a typical desktop monitor.

While dark adaption may take 30 minutes, light adaptation is much faster, taking only a few minutes. An example is leaving a dark theater on a Saturday afternoon, and being dazed by the bright sunlight for a minute or two. This adaptation period can even be painful for some people.

@@ -236,7 +236,7 @@

The twilight zone

There is a transitional area between dark and light adaptation known as mesopic vision, where both rods and cones operate at the same time. On a monitor, we'd consider this black (about #000005) up to as high as #555 for a bright desktop monitor.

-

Other adaptations

+

Other adaptations

We also adapt to contrast levels, and chroma and hue. Our perception is relative to context. If a page is very high contrast, we adapt to that high contrast. This will cause a low contrast item to seem even lower in contrast. We will also adapt to the overall hue cast of a page, as a result other colors on that page will be affected and perceived relative to the overall page color.

@@ -282,7 +282,7 @@

Chroma

Color Combinations

-

Certain color combinations can be very problematic on a computer monitor or mobile device, and some color combinations can interfere with some impairments. The combination of red/blue is one such example.

+

Certain color combinations can be very problematic on a computer monitor or mobile device, and some color combinations can interfere with some impairments. The combination of red/blue is one such example.

Some impairments cannot differentiate all colors. And some colors, such as pure blue, are so low in luminance they need to be the darkest of two colors. Blue is also very low in resolution. There are far fewer blue cones, and they are scattered in our peripheral vision and not present in our central vision. This leads to some color use guidelines:

@@ -348,11 +348,11 @@

Examples of color's effect beyo
  • Some colors can affect our perception of time: Color and time perception: Evidence for temporal overestimation of blue stimuli
  • -
  • Blue also has a significant effect on brightness and glare: Blue and glare & brightness
  • +
  • Blue also has a significant effect on brightness and glare: Blue and glare & brightness
  • Red tinted glasses can provide increased happiness or joy: Looking Through "Rose-Tinted" Glasses: The Influence of Tint on Visual Affective Processing
  • -
  • Red is well known to have significant effects on our behavior: How the Color Red Influences Our Behavior, Scientific American, S. Martinez-Conde, S,Macknik
  • +
  • Red is well known to have significant effects on our behavior: How the Color Red Influences Our Behavior, Scientific American, S. Martinez-Conde, S,Macknik
  • Red Environment: Studies have shown that a red environment stimulates cognition, but for those who suffer Traumatic Brain Injury cognitive function may be reduced in a red environment, while a green environment had no measurable effect according.
  • @@ -366,7 +366,7 @@

    Flashing and Seizures

    1. More than three flashes within any one second period.
    2. -
    3. From the minimal expected viewing distance, the total area of concurrent flashes subtends at the eye a solid angle of >0.006 steradians (approximately 300px square).
    4. +
    5. From the minimal expected viewing distance, the total area of concurrent flashes subtends at the eye a solid angle of <0.006 steradians (approximately 300px square).

    When the light–dark stripes of any pattern are larger than 300px square (approximately) and the luminance of the lightest stripe is more than 50 cd/m², the pattern should display no more than:

    @@ -404,7 +404,7 @@

    Step two: Linearize

    Using the function shown below:

    -
    function sRGBtoLin(colorChannel) {
    +
    function sRGBtoLin(colorChannel) {
       // Send this function a decimal sRGB gamma encoded color channel
       // between 0.0 and 1.0, and it returns a linearized value.
       if ( colorChannel <= 0.04045 ) {
    @@ -462,7 +462,7 @@ 

    W3C Issues and Discussions