Skip to content

Updating the contrast value #1780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions guidelines/terms/20/relative-luminance.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@


  • if RsRGB <= 0.03928 then R = RsRGB/12.92 else R = ((RsRGB+0.055)/1.055) ^ 2.4
  • if RsRGB <= 0.04045 then R = RsRGB/12.92 else R = ((RsRGB+0.055)/1.055) ^ 2.4

  • if GsRGB <= 0.03928 then G = GsRGB/12.92 else G = ((GsRGB+0.055)/1.055) ^ 2.4
  • if GsRGB <= 0.04045 then G = GsRGB/12.92 else G = ((GsRGB+0.055)/1.055) ^ 2.4

  • if BsRGB <= 0.03928 then B = BsRGB/12.92 else B = ((BsRGB+0.055)/1.055) ^ 2.4
  • if BsRGB <= 0.04045 then B = BsRGB/12.92 else B = ((BsRGB+0.055)/1.055) ^ 2.4

  • Expand All @@ -40,6 +40,8 @@



    Before May 2021 the value of 0.04045 in the definition was different. It was taken from an older version of the specification and has been updated. It should have no practical effect on the calculations.


    Almost all systems used today to view Web content assume sRGB encoding. Unless it

    is known that another color space will be used to process and display the content,
    Expand Down
    7 changes: 4 additions & 3 deletions techniques/general/G145.html
    Original file line number Diff line number Diff line change
    Expand Up @@ -52,7 +52,7 @@
    • if R
    • sRGB
      <= 0.03928 then
      <= 0.04045 then
      R
      = R
      sRGB
      Expand All @@ -63,7 +63,7 @@
      +0.055)/1.055) ^ 2.4
    • if G
    • sRGB
      <= 0.03928 then
      <= 0.04045 then
      G
      = G
      sRGB
      Expand All @@ -74,7 +74,7 @@
      +0.055)/1.055) ^ 2.4
    • if B
    • sRGB
      <= 0.03928 then
      <= 0.04045 then
      B
      = B
      sRGB
      Expand Down Expand Up @@ -146,6 +146,7 @@
    • #4 is true
    • Before May 2021 the value of 0.04045 in the definition was different. It was taken from an older version of the specification and has been updated. It should have no practical effect on the calculations.

      Resources


        Expand Down
        7 changes: 4 additions & 3 deletions techniques/general/G17.html
        Original file line number Diff line number Diff line change
        Expand Up @@ -53,7 +53,7 @@
        • if R
        • sRGB
          <= 0.03928 then
          <= 0.04045 then
          R
          = R
          sRGB
          Expand All @@ -64,7 +64,7 @@
          +0.055)/1.055) ^ 2.4
        • if G
        • sRGB
          <= 0.03928 then
          <= 0.04045 then
          G
          = G
          sRGB
          Expand All @@ -75,7 +75,7 @@
          +0.055)/1.055) ^ 2.4
        • if B
        • sRGB
          <= 0.03928 then
          <= 0.04045 then
          B
          = B
          sRGB
          Expand Down Expand Up @@ -147,6 +147,7 @@
        • #4 is true
        • Before May 2021 the value of 0.04045 in the definition was different. It was taken from an older version of the specification and has been updated. It should have no practical effect on the calculations.

        • G148
        • G174
        • Expand Down
          7 changes: 4 additions & 3 deletions techniques/general/G18.html
          Original file line number Diff line number Diff line change
          Expand Up @@ -58,7 +58,7 @@
          • if R
          • sRGB
            <= 0.03928 then
            <= 0.04045 then
            R
            = R
            sRGB
            Expand All @@ -69,7 +69,7 @@
            +0.055)/1.055) ^ 2.4
          • if G
          • sRGB
            <= 0.03928 then
            <= 0.04045 then
            G
            = G
            sRGB
            Expand All @@ -80,7 +80,7 @@
            +0.055)/1.055) ^ 2.4
          • if B
          • sRGB
            <= 0.03928 then
            <= 0.04045 then
            B
            = B
            sRGB
            Expand Down Expand Up @@ -152,6 +152,7 @@
          • #4 is true.
          • Before May 2021 the value of 0.04045 in the definition was different. It was taken from an older version of the specification and has been updated. It should have no practical effect on the calculations.

            Resources


              Expand Down