8000 [css3-ui] Improve phrasing in box-sizing · w3c/csswg-drafts@156547e · GitHub
Skip to content

Commit 156547e

Browse files
committed
[css3-ui] Improve phrasing in box-sizing
Improve the main definition of padding-box and border-box so that the text about keyword values always setting the size of the content box can be a note.
1 parent 4917961 commit 156547e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

css-ui/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ The padding and border of the element are laid out
134134
and drawn outside the specified width and height.</dd>
135135
<dt>padding-box</dt>
136136
<dd>
137-
The specified width and height (and respective min/max properties)
137+
Length and percentages values for width and height (and respective min/max properties)
138138
on this element determine the padding box of the element.
139139
That is, any padding specified on the element is laid out
140140
and drawn inside this specified width and height.
@@ -148,8 +148,8 @@ cannot be negative</a> ([[!CSS21]], section 10.2),
148148
this computation is floored at 0.
149149
</dd>
150150
<dt>border-box</dt>
151-
<dd>The specified width and height (and respective min/max properties) on this element
152-
determine the border box of the element.
151+
<dd>Length and percentages values for width and height (and respective min/max properties)
152+
on this element determine the border box of the element.
153153
That is, any padding or border specified on the element
154154
is laid out and drawn inside this specified width and height.
155155
The content width and height are calculated
@@ -165,7 +165,7 @@ by legacy HTML user agents for replaced elements and input elements.
165165
</dd>
166166
</dl>
167167

168-
In contrast to the length and percentage values,
168+
Note: In contrast to the length and percentage values,
169169
the ''auto'' value of the 'width' and 'height' properties
170170
(as well as other keyword values introduced by later specifications,
171171
unless otherwise specified)

css-ui/Overview.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
10411041
<dt>padding-box
10421042

10431043
<dd>
1044-
The specified width and height (and respective min/max properties)
1044+
Length and percentages values for width and height (and respective min/max properties)
10451045
on this element determine the padding box of the element.
10461046
That is, any padding specified on the element is laid out
10471047
and drawn inside this specified width and height.
@@ -1057,8 +1057,8 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
10571057

10581058
<dt>border-box
10591059

1060-
<dd>The specified width and height (and respective min/max properties) on this element
1061-
determine the border box of the element.
1060+
<dd>Length and percentages values for width and height (and respective min/max properties)
1061+
on this element determine the border box of the element.
10621062
That is, any padding or border specified on the element
10631063
is laid out and drawn inside this specified width and height.
10641064
The content width and height are calculated
@@ -1076,7 +1076,7 @@ <h3 class="heading settled" data-level="3.1" id="box-sizing"><span class="secno"
10761076
</dl>
10771077

10781078

1079-
<p>In contrast to the length and percentage values,
1079+
<p class="note" role="note">Note: In contrast to the length and percentage values,
10801080
the <a class="css" data-link-type="maybe" href="http://dev.w3.org/csswg/css-align-3/#valdef-justify-content-auto">auto</a> value of the <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-width">width</a> and <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css2/visudet.html#propdef-height">height</a> properties
10811081
(as well as other keyword values introduced by later specifications,
10821082
unless otherwise specified)

0 commit comments

Comments
 (0)