Skip to content

Commit 5c78136

Browse files
authored
[css-shapes-1] Minor fixes for WD (#12284)
1 parent eb01323 commit 5c78136

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

css-shapes-1/Overview.bs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:css-values-5; type:value;
4444
text:y-end;
4545
</pre>
4646

47-
<style type="text/css">
47+
<style>
4848
.singleImgExample {
4949
display: block;
5050
margin: auto;
@@ -894,7 +894,7 @@ The ''shape()'' Function</h4>
894894
and <<arc-size>> has no effect.
895895

896896
<figure>
897-
<img src="images/four-arcs.svg">
897+
<img src="images/four-arcs.svg" alt="a depiction of four possible arcs given a start and end point">
898898
<figcaption>
899899
A depiction of the two possible ellipses,
900900
and four possible arcs,
@@ -924,7 +924,7 @@ While the ''polygon()'' shape is also responsive, it only support simple rounded
924924

925925
To demonstrate, let's start with a speech bubble, such as the following:
926926

927-
<img src="images/bubble.svg" width=300 style="background: unset">
927+
<img src="images/bubble.svg" width=300 style="background: unset" alt="A speech bubble shape">
928928

929929
Using this shape with a ''clip-path'' can be done by using the ''path()'' function:
930930

@@ -934,7 +934,7 @@ Using this shape with a ''clip-path'' can be done by using the ''path()'' functi
934934

935935
Altohugh this path can easily scale, the scaled results are not always desirable. e.g. when scaled to a small balloon, the arrow and corners are scaled to become almost invisible:
936936

937-
<img src="images/bubble.svg" width=100 style="background: unset">
937+
<img src="images/bubble.svg" width=100 style="background: unset" alt="scled-down speech bubble shape">
938938

939939
To construct this shape using the ''shape()'' function, let's start by turning all the pixel values from the ''path'' function to percentages.
940940
Note that the ''shape()'' function begins with <css>from</css>:
@@ -974,7 +974,7 @@ specifically the ones the control the curves and arrows:
974974

975975
When applied as ''clip-path'', it would looks like the following:
976976
<p>
977-
<img src="images/bubble-50.svg" width=150 style="background: unset">
977+
<img src="images/bubble-50.svg" width=150 style="background: unset" alt="A speech bubble shape, using clip-path">
978978
</p>
979979

980980
The whole speech bubble is scaled to the reference box, while the curves and arrows stay more constant.
@@ -1026,8 +1026,6 @@ we can make the arrow and radius parametric:
10261026
curve to var(---radius) top with left top); }
10271027
</pre>
10281028

1029-
1030-
10311029
</div>
10321030

10331031
<h5 id=interpolating-shape>
@@ -1359,7 +1357,7 @@ Shapes from Box Values</h2>
13591357
Its syntax is:
13601358

13611359
<pre class="prod">
1362-
<dfn><<shape-box>></dfn> = <<visual-box>> | <l>''margin-box''</l>
1360+
<dfn><<shape-box>></dfn> = <<visual-box>> | <a data-xref-type="css-value" data-xref-for="<shape-box>">margin-box</a>
13631361
</pre>
13641362

13651363
The definitions of the values are:
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)