Skip to content

Commit 9f142c4

Browse files
cdoublevfrivoal
authored andcommitted
[css-inline-3][css-page-3][css-text] Enforce non-negative value from basic syntax
1 parent 8fbf068 commit 9f142c4

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

css-inline-3/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ Line Spacing: the 'line-height' property</h3>
964964

965965
<pre class="propdef">
966966
Name: line-height
967-
Value: normal | <<number>> | <<length-percentage>>
967+
Value: normal | <<number [0,∞]>> | <<length-percentage [0,∞]>>
968968
Initial: normal
969969
Applies to: non-replaced inline boxes and SVG <a>text content elements</a>
970970
Inherited: yes
@@ -991,19 +991,19 @@ Line Spacing: the 'line-height' property</h3>
991991
Determine the [=preferred line height=]
992992
automatically based on font metrics.
993993

994-
<dt><dfn><<length>></dfn>
994+
<dt><dfn><<length [0,∞]>></dfn>
995995
<dd>
996996
The specified length is used as the [=preferred line height=].
997997
Negative values are illegal.
998998

999-
<dt><dfn><<number>></dfn>
999+
<dt><dfn><<number [0,∞]>></dfn>
10001000
<dd>
10011001
The [=preferred line height=] is this number
10021002
multiplied by the element's computed 'font-size'.
10031003
Negative values are illegal.
10041004
The [=computed value=] is the same as the [=specified value=].
10051005

1006-
<dt><dfn><<percentage>></dfn>
1006+
<dt><dfn><<percentage [0,∞]>></dfn>
10071007
<dd>
10081008
The [=preferred line height=]
10091009
and [=computed value=] of the property

css-page-3/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ Page size: the 'size' property</h3>
16641664
<pre class=descdef>
16651665
Name: size
16661666
For: @page
1667-
Value: <<length>>{1,2} | auto | [ <<page-size>> || [ portrait | landscape ] ]
1667+
Value: <<length [0,∞]>>{1,2} | auto | [ <<page-size>> || [ portrait | landscape ] ]
16681668
Initial: auto
16691669
Computed value: specified value, with <<length>>s made absolute.
16701670
</pre>
@@ -1748,7 +1748,7 @@ Page size: the 'size' property</h3>
17481748
shorter sides of the page box are horizontal. If a <<page-size>> is not specified, the size of the page sheet
17491749
is chosen by the UA.
17501750

1751-
<dt><dfn><<length>></dfn>
1751+
<dt><dfn><<length [0,∞]>></dfn>
17521752
<dd>
17531753
The page box will be set to the given absolute dimension(s). If only one length
17541754
value is specified, it sets both the width and height of the page box (i.e.,

css-text-3/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ Tab Character Size: the 'tab-size' property</h3>
28562856

28572857
<pre class="propdef">
28582858
Name: tab-size
2859-
Value: <<number>> | <<length>>
2859+
Value: <<number [0,∞]>> | <<length [0,∞]>>
28602860
Initial: 8
28612861
Applies to: text
28622862
Inherited: yes

css-text-4/Overview.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4042,7 +4042,7 @@ Tab Character Size: the 'tab-size' property</h3>
40424042

40434043
<pre class="propdef">
40444044
Name: tab-size
4045-
Value: <<number>> | <<length>>
4045+
Value: <<number [0,∞]>> | <<length [0,∞]>>
40464046
Initial: 8
40474047
Applies to: text
40484048
Inherited: yes

0 commit comments

Comments
 (0)