Skip to content

Commit d14df07

Browse files
committed
[css-color-adjust-1][editorial] Expand reasoning for preserving the privacy leak around system colors. w3c#5710
1 parent 93a3db4 commit d14df07

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

css-color-adjust-1/Overview.bs

+17
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,23 @@ Privacy and Security Considerations {#priv-sec}
744744
via {{getComputedStyle()}},
745745
which can increase fingerprinting surface.
746746

747+
<div class=note>
748+
Avoiding this comes with unfortunate drawbacks that were deemed too significant to be ignored.
749+
Namely:
750+
751+
* preserving system colors as keywords until actual-value time
752+
would break a significant amount of deployed script,
753+
as the initial value of 'color' is a system color already
754+
(but a huge amount of script implicitly expects to see an RGB color from 'color')
755+
* lying about system colors from the scripting APIs
756+
(pretending they're always some static values)
757+
can result in any colors calculated <em>from</em> page colors in script
758+
being unreadable when used with the <em>actual</em> system colors.
759+
760+
See <a href="https://github.com/w3c/csswg-drafts/issues/5710#issuecomment-840772752">Issue 5710</a>
761+
for discussion on this topic.
762+
</div>
763+
747764
Additionally, it may be possible for an embedded document
748765
to use timing attacks to determine whether its own 'color-scheme'
749766
matches that of its embedding <{iframe}> or not.

0 commit comments

Comments
 (0)