(foreground * alpha/0xff) + (background * (1 - alpha/0xff)
foreground = 0, white=0xff
So
(0 * 1) + (1 * (255 - 128) = 0 + 127
In other words, the max is 255 and not 256, and what's multiplied is the background with the inverse, so you get 127 and not 128.
(foreground * alpha/0xff) + (background * (1 - alpha/0xff)
foreground = 0, white=0xff
So
(0 * 1) + (1 * (255 - 128) = 0 + 127
In other words, the max is 255 and not 256, and what's multiplied is the background with the inverse, so you get 127 and not 128.
(Don't look at current spec, just think of what feels right)
Poll:
indieweb.social/@nomster/115...
or x.com/nomsternom/s...
The justification was that attr() brings with it a lot of complexity and verbosity (fair) and that matching by ID by default is "obvious" (I beg to differ).
The justification was that attr() brings with it a lot of complexity and verbosity (fair) and that matching by ID by default is "obvious" (I beg to differ).
I preferred that name over "auto" because it's slightly less enticing but I still prefer to not have anything that has automagic attr-like capabilities.
I preferred that name over "auto" because it's slightly less enticing but I still prefer to not have anything that has automagic attr-like capabilities.