Skip to content

Commit c1c2e82

Browse files
committed
[css-values-3] Remove consideration of scrollbars in viewport unit computation due to lack of implementations. <https://lists.w3.org/Archives/Public/www-style/2017Sep/0014.html> Fixes w3c#1766
1 parent 1ddd303 commit c1c2e82

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

css-values-3/Overview.bs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,9 +1006,7 @@ Viewport-percentage lengths: the ''vw'', ''vh'', ''vmin'', ''vmax'' units</h4>
10061006
<a href="https://www.w3.org/TR/CSS21/visudet.html#containing-block-details">initial containing block</a>.
10071007
When the height or width of the initial containing block is changed,
10081008
they are scaled accordingly.
1009-
However, when the value of 'overflow' on the root element is ''overflow/auto'',
1010-
any scroll bars are assumed not to exist.
1011-
<span class='note'>Note that the initial containing block's size is affected by the presence of scrollbars on the viewport.</span>
1009+
However, any scrollbars are assumed not to exist.
10121010

10131011
For paged media, the exact definition of the viewport-percentage lengths
10141012
is deferred to [[!CSS3PAGE]].
@@ -2127,12 +2125,16 @@ Changes</h2>
21272125
Changes since the <a href="https://www.w3.org/TR/2016/CR-css-values-3-20160929/">29 September 2016 Candidate Recommendation</a> are:
21282126

21292127
<ul>
2128+
<li>Removed <a href="#change-2012-vwh-scrollbars">consideration of scrollbars</a>
2129+
in computing viewport units due to lack of implementations.
2130+
(<a href="https://drafts.csswg.org/css-values-3/issues-cr-2016#issue-15">Issue 15</a>)
21302131
<li>Inlined the <<position>> definition and dropped the three-value syntaxes
21312132
to allow for unambiguous combination in complex grammars.
21322133
This effectively removes that syntax from 'object-position',
21332134
but allows <<position>> to be re-used e.g. in [[CSS-TRANSFORMS-1]] for 3D positions.
21342135
(See <a href="https://lists.w3.org/Archives/Public/www-style/2017Feb/0052.html">discussion</a>.)
2135-
<li>Reverted previous change to allow zero angles to drop their unit; this will instead be special-cased where needed for backwards-compatibility.
2136+
<li>Reverted previous change to allow zero angles to drop their unit;
2137+
this will instead be special-cased where needed for backwards-compatibility.
21362138
(See <a href="https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html">discussion</a>)
21372139
<li>Fixed grammar error that disallowed numeric expressions as denominators in ''calc()''.
21382140
(<a href="https://drafts.csswg.org/css-values-3/issues-cr-2016#issue-12">Issue 12</a>)
@@ -2192,7 +2194,8 @@ Changes</h2>
21922194
<ul>
21932195
<li>Corrected <code>wqname</code> in the ''attr()'' syntax to <code>qname</code>
21942196
<li>Made undefined namespace prefixes in ''attr()'' invalidate the function.
2195-
<li>Per <a href="http://lists.w3.org/Archives/Public/www-style/2013Jan/0616.html">WG resolution</a>,
2197+
<li id="change-2012-vwh-scrollbars">
2198+
Per <a href="http://lists.w3.org/Archives/Public/www-style/2013Jan/0616.html">WG resolution</a>,
21962199
made <a href="#viewport-relative-lengths">viewport-percentage units</a> respect scrollbars on the viewport
21972200
unless 'overflow' is ''overflow/auto'' (in which case they ignore the presence of scrollbars).
21982201
<li>Deferred exact definition of <a href="#viewport-relative-lengths">viewport-percentage units</a>

css-values-3/issues-cr-2016.bsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,10 @@ Comment: https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html
115115
Closed: Accepted
116116
Resolved: https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html
117117
----
118+
Issue 15.
119+
Summary: Consideration of scrollbars in viewport unit computation not implemented
120+
From: David Baron
121+
Comment: https://github.com/w3c/csswg-drafts/issues/1766
122+
Closed: Accepted
123+
Resolved: https://lists.w3.org/Archives/Public/www-style/2017Sep/0014.html
124+
----

css-values-3/issues-cr-2016.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ <h1>CSS Values and Units Level 3 Disposition of Comments for 2016-09-29 CR</h1>
149149
<span>Comment: <a href='https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html'>https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2017Apr/0027.html"><abbr title="Thread">&#x2208;</abbr></a></span>
150150
<span class="a">Closed: Accepted</span>
151151
<span>Resolved: <a href='https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html'>https://lists.w3.org/Archives/Public/www-style/2017Apr/0027.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2017Apr/0027.html"><abbr title="Thread">&#x2208;</abbr></a></span></pre>
152+
<pre class=' a' id='issue-15'>
153+
<span>Issue 15. <a href='#issue-15'>#</a></span>
154+
<span>Summary: Consideration of scrollbars in viewport unit computation not implemented</span>
155+
<span>From: David Baron</span>
156+
<span>Comment: <a href='https://github.com/w3c/csswg-drafts/issues/1766'>https://github.com/w3c/csswg-drafts/issues/1766</a></span>
157+
<span class="a">Closed: Accepted</span>
158+
<span>Resolved: <a href='https://lists.w3.org/Archives/Public/www-style/2017Sep/0014.html'>https://lists.w3.org/Archives/Public/www-style/2017Sep/0014.html</a> <a href="https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2017Sep/0014.html"><abbr title="Thread">&#x2208;</abbr></a></span></pre>
152159
<script>
153160
(function () {
154161
var sheet = document.styleSheets[0];

0 commit comments

Comments
 (0)