Skip to content

Commit 45a0223

Browse files
cdoublevastearns
authored andcommitted
[css-shapes-2] Make shape-padding consistent with shape-margin
- also accept percentage - enforce non-negative values
1 parent 849404e commit 45a0223

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

css-shapes-2/Overview.bs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,14 +637,21 @@ The 'shape-padding' Property</h4>
637637

638638
<pre class='propdef'>
639639
Name: shape-padding
640-
Value: <<length>>
641-
Initial: none
640+
Value: <<length-percentage [0,∞]>>
641+
Initial: 0
642642
Applies To: block-level elements
643643
Inherited: no
644-
Computed Value: the absolute length
644+
Percentages: refer to the <a>inline size</a> of the containing block
645+
Computed Value: computed <<length-percentage>> value
645646
Animation type: by computed value
646647
</pre>
647648

649+
<dl dfn-type="value" dfn-for="shape-padding">
650+
<dt><dfn><<length-percentage [0,∞]>></dfn></dt>
651+
<dd>
652+
Sets the padding of the shape to the specified value.
653+
</dl>
654+
648655
<div class="example">
649656
<figure>
650657
<img src="images/shape-padding.png" alt="Example of a shape-padding offset"/>

0 commit comments

Comments
 (0)