Skip to content

Commit f6b3530

Browse files
committed
[css-ui-3] drop box-sizing:padding-box
This was at risk and browser vendors agree not to implement.
1 parent 342953c commit f6b3530

2 files changed

Lines changed: 5 additions & 57 deletions

File tree

css-ui/Overview.bs

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Link Defaults: css-writing-modes-3 (dfn) end
3232
Ignored Terms: outline-top
3333
Ignored Terms: outline-left
3434
Ignored Terms: ime-mode
35-
At Risk: 'box-sizing' property value: padding-box
3635
At Risk: 'caret-color' property
3736
At Risk: 'text-overflow' property value: <<string>>
3837
At Risk: 'text-overflow' property 2-value syntax and definition
@@ -42,8 +41,6 @@ At Risk: constraints on 'outline-offset' property negative values
4241
<!--
4342
At risk due to only one implementation:
4443

45-
<li>box-sizing: padding-box - only FF supports in prefixed version
46-
4744
Not at risk:
4845
<li>box-sizing implemented by IE5/Mac, Opera
4946
-moz-box-sizing implemented by Mozilla
@@ -119,7 +116,6 @@ of Cascading Style Sheets, level 2, revision 1 [[CSS21]]
119116
<tr><th>Name:</th><td><dfn>box-sizing</dfn></td></tr>
120117
<tr><th>Value:</th><td>
121118
content-box |
122-
padding-box |
123119
border-box
124120
</td></tr>
125121
<tr><th>Initial:</th><td>content-box</td></tr>
@@ -138,22 +134,6 @@ The specified width and height (and respective min/max properties)
138134
apply to the width and height respectively of the content box of the element.
139135
The padding and border of the element are laid out
140136
and drawn outside the specified width and height.</dd>
141-
<dt><dfn>padding-box</dfn></dt>
142-
<dd>
143-
Length and percentages values for width and height (and respective min/max properties)
144-
on this element determine the padding box of the element.
145-
That is, any padding specified on the element is laid out
146-
and drawn inside this specified width and height.
147-
The content width and height are calculated by
148-
subtracting the padding widths of the respective sides
149-
from the specified 'width' and
150-
'height' properties.
151-
As the content width and height
152-
<a href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property">
153-
cannot be negative</a> ([[!CSS21]], section 10.2),
154-
this computation is floored at 0.
155-
Used values, as exposed for instance through {{getComputedStyle()}}, also refer to the padding box.
156-
</dd>
157137
<dt><dfn>border-box</dfn></dt>
158138
<dd>Length and percentages values for width and height (and respective min/max properties)
159139
on this element determine the border box of the element.
@@ -183,11 +163,11 @@ and always sets the size of the content box.
183163
The following terms, whose definitions vary based on the computed value of 'box-sizing' are introduced:
184164

185165
<table border="1">
186-
<tr><th><th>''box-sizing: content-box''<th>''box-sizing: padding-box''<th>''box-sizing: border-box''
187-
<tr><td><dfn>min inner width</dfn><td>'min-width'<td>max(0, 'min-width' &minus; 'padding-left' &minus; 'padding-right')<td>max(0, 'min-width' &minus; 'padding-left' &minus; 'padding-right' &minus; 'border-left-width' &minus; 'border-right-width')
188-
<tr><td><dfn>max inner width</dfn><td>'max-width'<td>max(0, 'max-width' &minus; 'padding-left' &minus; 'padding-right')<td>max(0, 'max-width' &minus; 'padding-left' &minus; 'padding-right' &minus; 'border-left-width' &minus; 'border-right-width')
189-
<tr><td><dfn>min inner height</dfn><td>'min-height'<td>max(0, 'min-height' &minus; 'padding-top' &minus; 'padding-bottom')<td>max(0, 'min-height' &minus; 'padding-top' &minus; 'padding-bottom' &minus; 'border-top-width' &minus; 'border-bottom-width')
190-
<tr><td><dfn>max inner height</dfn><td>'max-height'<td>max(0, 'max-height' &minus; 'padding-top' &minus; 'padding-bottom')<td>max(0, 'max-height' &minus; 'padding-top' &minus; 'padding-bottom' &minus; 'border-top-width' &minus; 'border-bottom-width')
166+
<tr><th><th>''box-sizing: content-box''<th>''box-sizing: border-box''
167+
<tr><td><dfn>min inner width</dfn><td>'min-width'<td>max(0, 'min-width' &minus; 'padding-left' &minus; 'padding-right' &minus; 'border-left-width' &minus; 'border-right-width')
168+
<tr><td><dfn>max inner width</dfn><td>'max-width'<td>max(0, 'max-width' &minus; 'padding-left' &minus; 'padding-right' &minus; 'border-left-width' &minus; 'border-right-width')
169+
<tr><td><dfn>min inner height</dfn><td>'min-height'<td>max(0, 'min-height' &minus; 'padding-top' &minus; 'padding-bottom' &minus; 'border-top-width' &minus; 'border-bottom-width')
170+
<tr><td><dfn>max inner height</dfn><td>'max-height'<td>max(0, 'max-height' &minus; 'padding-top' &minus; 'padding-bottom' &minus; 'border-top-width' &minus; 'border-bottom-width')
191171
</table>
192172

193173
The <a href="http://www.w3.org/TR/CSS21/visudet.html">Visual formatting model details</a> of [[!CSS21]] are written assuming ''box-sizing: content-box''. The following disambiguations are made to clarify the behavior for all values of 'box-sizing':
@@ -253,8 +233,6 @@ demonstration of sample CSS and HTML:
253233
</div>
254234
</div>
255235

256-
Note: The ''box-sizing/padding-box'' value is at risk.
257-
258236
<h2 id="outline-props">Outline properties</h2>
259237

260238
At times, style sheet authors may want to create outlines around

css-ui/Overview.html

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="conten
320320
<p>The following features are at-risk, and may be dropped during the CR period:
321321
</p>
322322
<ul>
323-
<li><a class="property" data-link-type="propdesc" href="#propdef-box-sizing">box-sizing</a> property value: padding-box
324323
<li><a class="property" data-link-type="propdesc" href="#propdef-caret-color">caret-color</a> property
325324
<li><a class="property" data-link-type="propdesc" href="#propdef-text-overflow">text-overflow</a> property value: <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#string-value">&lt;string></a>
326325
<li><a class="property" data-link-type="propdesc" href="#propdef-text-overflow">text-overflow</a> property 2-value syntax and definition
@@ -492,7 +491,6 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
492491
<th>Value:
493492
<td>
494493
content-box |
495-
padding-box |
496494
border-box
497495

498496

@@ -544,24 +542,6 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
544542
The padding and border of the element are laid out
545543
and drawn outside the specified width and height.
546544

547-
<dt><dfn class="css" data-dfn-for="box-sizing" data-dfn-type="value" data-export="" id="valdef-box-sizing-padding-box">padding-box<a class="self-link" href="#valdef-box-sizing-padding-box"></a></dfn>
548-
549-
<dd>
550-
Length and percentages values for width and height (and respective min/max properties)
551-
on this element determine the padding box of the element.
552-
That is, any padding specified on the element is laid out
553-
and drawn inside this specified width and height.
554-
The content width and height are calculated by
555-
subtracting the padding widths of the respective sides
556-
from the specified <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-width">width</a> and
557-
<a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-height">height</a> properties.
558-
As the content width and height
559-
<a href="http://www.w3.org/TR/CSS21/visudet.html#the-width-property">
560-
cannot be negative</a> (<a data-link-type="biblio" href="#biblio-css21">[CSS21]</a>, section 10.2),
561-
this computation is floored at 0.
562-
Used values, as exposed for instance through <code class="idl"><a data-link-type="idl" href="http://dev.w3.org/csswg/cssom-1/#dom-window-getcomputedstyleelt-pseudoelt">getComputedStyle()</a></code>, also refer to the padding box.
563-
564-
565545
<dt><dfn class="css" data-dfn-for="box-sizing" data-dfn-type="value" data-export="" id="valdef-box-sizing-border-box">border-box<a class="self-link" href="#valdef-box-sizing-border-box"></a></dfn>
566546

567547
<dd>Length and percentages values for width and height (and respective min/max properties)
@@ -601,31 +581,26 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
601581
<tr>
602582
<th>
603583
<th><a class="css" data-link-type="propdesc" href="#propdef-box-sizing">box-sizing: content-box</a>
604-
<th><a class="css" data-link-type="propdesc" href="#propdef-box-sizing">box-sizing: padding-box</a>
605584
<th><a class="css" data-link-type="propdesc" href="#propdef-box-sizing">box-sizing: border-box</a>
606585

607586
<tr>
608587
<td><dfn data-dfn-type="dfn" data-noexport="" id="min-inner-width">min inner width<a class="self-link" href="#min-inner-width"></a></dfn>
609588
<td><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-width">min-width</a>
610-
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-width">min-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-left">padding-left</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-right">padding-right</a>)
611589
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-width">min-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-left">padding-left</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-right">padding-right</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-left-width">border-left-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-right-width">border-right-width</a>)
612590

613591
<tr>
614592
<td><dfn data-dfn-type="dfn" data-noexport="" id="max-inner-width">max inner width<a class="self-link" href="#max-inner-width"></a></dfn>
615593
<td><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-width">max-width</a>
616-
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-width">max-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-left">padding-left</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-right">padding-right</a>)
617594
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-width">max-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-left">padding-left</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-right">padding-right</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-left-width">border-left-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-right-width">border-right-width</a>)
618595

619596
<tr>
620597
<td><dfn data-dfn-type="dfn" data-noexport="" id="min-inner-height">min inner height<a class="self-link" href="#min-inner-height"></a></dfn>
621598
<td><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-height">min-height</a>
622-
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-height">min-height</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-top">padding-top</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-bottom">padding-bottom</a>)
623599
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-min-height">min-height</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-top">padding-top</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-bottom">padding-bottom</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-top-width">border-top-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-bottom-width">border-bottom-width</a>)
624600

625601
<tr>
626602
<td><dfn data-dfn-type="dfn" data-noexport="" id="max-inner-height">max inner height<a class="self-link" href="#max-inner-height"></a></dfn>
627603
<td><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-height">max-height</a>
628-
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-height">max-height</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-top">padding-top</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-bottom">padding-bottom</a>)
629604
<td>max(0, <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-max-height">max-height</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-top">padding-top</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/box.html#propdef-padding-bottom">padding-bottom</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-top-width">border-top-width</a><a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-backgrounds-3/#border-bottom-width">border-bottom-width</a>)
630605
</table>
631606

@@ -724,9 +699,6 @@ <h4 class="no-num no-toc heading settled" id="box-sizing-example"><span class="c
724699
</div>
725700

726701

727-
<p class="note" role="note">Note: The <a class="css" data-link-type="maybe" href="#valdef-box-sizing-padding-box">padding-box</a> value is at risk.</p>
728-
729-
730702
<h2 class="heading settled" data-level="4" id="outline-props"><span class="secno">4. </span><span class="content">Outline properties</span><a class="self-link" href="#outline-props"></a></h2>
731703

732704

@@ -3923,7 +3895,6 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
39233895
<li>outline-offset, <a href="#propdef-outline-offset">4.5</a>
39243896
<li>outline-style, <a href="#propdef-outline-style">4.3</a>
39253897
<li>outline-width, <a href="#propdef-outline-width">4.2</a>
3926-
<li>padding-box, <a href="#valdef-box-sizing-padding-box">3.1</a>
39273898
<li>resize, <a href="#propdef-resize">5.1</a>
39283899
<li>text-overflow, <a href="#propdef-text-overflow">5.2</a>
39293900
</ul>
@@ -4079,7 +4050,6 @@ <h2 class="no-num heading settled" id="property-index"><span class="content">Pro
40794050
<tr>
40804051
<th scope="row"><a class="css" data-link-type="property" href="#propdef-box-sizing">box-sizing</a>
40814052
<td>content-box |
4082-
padding-box |
40834053
border-box
40844054
<td>content-box
40854055
<td>all elements that accept width or height

0 commit comments

Comments
 (0)