Skip to content

Commit 972acef

Browse files
author
Simon Pieters
committed
[cssom-view] Remove a fingerprinting vector (colorDepth/pixelDepth). https://www.w3.org/Bugs/Public/show_bug.cgi?id=17522
1 parent bac8cd9 commit 972acef

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

cssom-view/Overview.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -705,13 +705,12 @@ <h3 id="the-screen-interface"><span class="secno">5.2 </span>The <code title="">
705705

706706
<p>The <dfn id="dom-screen-height" title="dom-Screen-height"><code>height</code></dfn> attribute must return the height of the output device.</p>
707707

708-
<p>The <dfn id="dom-screen-colordepth" title="dom-Screen-colorDepth"><code>colorDepth</code></dfn> attribute must return the number of bits allocated to
709-
colors (i.e. excluding the alpha channel) for one device pixel in the output device. If no
710-
bits are allocated to colors in the output device this attribute
711-
must return zero.</p>
708+
<p>The <dfn id="dom-screen-colordepth" title="dom-Screen-colorDepth"><code>colorDepth</code></dfn> attribute must return 24.</p>
712709

713-
<p>The <dfn id="dom-screen-pixeldepth" title="dom-Screen-pixelDepth"><code>pixelDepth</code></dfn> attribute must return the value returned by the
714-
<code title="dom-Screen-colorDepth"><a href="#dom-screen-colordepth">colorDepth</a></code> attribute.</p>
710+
<p>The <dfn id="dom-screen-pixeldepth" title="dom-Screen-pixelDepth"><code>pixelDepth</code></dfn> attribute must return 24.</p>
711+
712+
<p class="note">The <code title="dom-Screen-colorDepth"><a href="#dom-screen-colordepth">colorDepth</a></code> and <code title="dom-Screen-pixelDepth"><a href="#dom-screen-pixeldepth">pixelDepth</a></code> attributes are useless but are
713+
included for compatibility.
715714

716715

717716
<h2 id="extensions-to-the-document-interface"><span class="secno">6 </span>Extensions to the <code title="">Document</code> Interface</h2>

cssom-view/Overview.src.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,13 +667,12 @@ <h3>The <code title>Screen</code> Interface</h3>
667667

668668
<p>The <dfn title=dom-Screen-height><code>height</code></dfn> attribute must return the height of the output device.</p>
669669

670-
<p>The <dfn title=dom-Screen-colorDepth><code>colorDepth</code></dfn> attribute must return the number of bits allocated to
671-
colors (i.e. excluding the alpha channel) for one device pixel in the output device. If no
672-
bits are allocated to colors in the output device this attribute
673-
must return zero.</p>
670+
<p>The <dfn title=dom-Screen-colorDepth><code>colorDepth</code></dfn> attribute must return 24.</p>
674671

675-
<p>The <dfn title=dom-Screen-pixelDepth><code>pixelDepth</code></dfn> attribute must return the value returned by the
676-
<code title=dom-Screen-colorDepth>colorDepth</code> attribute.</p>
672+
<p>The <dfn title=dom-Screen-pixelDepth><code>pixelDepth</code></dfn> attribute must return 24.</p>
673+
674+
<p class=note>The <code title=dom-Screen-colorDepth>colorDepth</code> and <code title=dom-Screen-pixelDepth>pixelDepth</code> attributes are useless but are
675+
included for compatibility.
677676

678677

679678
<h2>Extensions to the <code title>Document</code> Interface</h2>

0 commit comments

Comments
 (0)