Skip to content

Commit 514d25c

Browse files
committed
[css-round-display] Update a device-radius property (2 values -> 1 value)
1 parent 66d3440 commit 514d25c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-round-display/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ By the mechanism of media queries, if the value of the 'device-radius' media fea
6060
Name: device-radius
6161
Type: range
6262
For: @media
63-
Value: [ <<length>> | <<percentage>> ]{1,2}
63+
Value: [ <<length>> | <<percentage>> ]
6464
Percentage: Refer to corresponding dimension of the display
6565
</pre>
6666
<p class="note">
6767
Note: To define a '<code>range</code>' type media feature, the feature may be written as a normal media feature, but with a '<code>min-</code>' or '<code>max-</code>' prefix on the feature name. '<code>min-</code>' or '<code>max-</code>' prefixes express 'greater or equal to' or 'smaller or equal to' constriants respectively.
6868
</p>
6969
<p>
70-
The two length or percentage values of the '<code>device-radius</code>' property define the radius of a quarter ellipse in terms of the shape of the corner of the outer screen edge (This is similar to the '<code>border-radius</code>' properties. see the 'border-radius' description). The first value of the '<code>device-radius</code>' property is a horizontal radius, and the second one is a vertical radius. If the second value is ommitted, it is copied from the frist. If either length is zero, the shape of screen is rectangle not rounded. Percentage value for the horizontal radius refer to the horizontal radius of the screen, whereas percentage value for the vertical radius refer to the vertical radius of the screen. Negative value is not allowed.
70+
The length or percentage value of the '<code>device-radius</code>' property define the radius of a quarter ellipse in terms of the shape of the corner of the outer screen edge (This is similar to the '<code>border-radius</code>' properties. see the 'border-radius' description). If the length is zero, the shape of screen is a rectangle, otherwise that is a rectangle with round corners or a regular circle. A percentage value of the '<code>device-radius</code>' is proportional to the diameter of the screen. If the screen shape is a regular circle, '<code>device-radius</code>': 50% has a true value, because a half of the diameter of the regular circle is the radius of the screen shape. An negative value is not allowed.
7171
</p>
7272

7373
<div class='example'>

0 commit comments

Comments
 (0)