Skip to content

Commit d917c2a

Browse files
Jihye Hongsvgeesus
authored andcommitted
Merge pull request w3c#208 from ewilligers/fix-motion-examples
[motion-1] Minor corrections to examples
1 parent 01d68ff commit d917c2a

1 file changed

Lines changed: 20 additions & 24 deletions

File tree

motion-1/Overview.bs

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ Values have the following meanings:
269269

270270
offset-position: 20% 20%;
271271
offset-distance: 0%;
272+
offset-rotate: 0deg;
272273
offset-anchor: 200% -300%;
273274
}
274275
#blueBox {
@@ -923,23 +924,23 @@ This example shows boxes centered at their offset-position.
923924
}
924925
#item1 {
925926
offset-position: 90% 20%;
926-
width: 60;
927-
height: 20;
927+
width: 60%;
928+
height: 20%;
928929
}
929930
#item2 {
930931
offset-position: 100% 100%;
931-
width: 30;
932-
height: 10;
932+
width: 30%;
933+
height: 10%;
933934
}
934935
#item3 {
935936
offset-position: 50% 100%;
936-
width: 20;
937-
height: 60;
937+
width: 20%;
938+
height: 60%;
938939
}
939940
#item4 {
940941
offset-position: 0% 100%;
941-
width: 30;
942-
height: 90;
942+
width: 30%;
943+
height: 90%;
943944
}
944945
</style>
945946
<body>
@@ -971,23 +972,23 @@ This example shows how offset-anchor computes to their offset-position.
971972
}
972973
#item1 {
973974
offset-position: 90% 20%;
974-
width: 60;
975-
height: 20;
975+
width: 60%;
976+
height: 20%;
976977
}
977978
#item2 {
978979
offset-position: 100% 100%;
979-
width: 30;
980-
height: 10;
980+
width: 30%;
981+
height: 10%;
981982
}
982983
#item3 {
983984
offset-position: 50% 100%;
984-
width: 20;
985-
height: 60;
985+
width: 20%;
986+
height: 60%;
986987
}
987988
#item4 {
988989
offset-position: 0% 100%;
989-
width: 30;
990-
height: 90;
990+
width: 30%;
991+
height: 90%;
991992
}
992993
</style>
993994
<body>
@@ -1115,8 +1116,9 @@ The computed value of <<angle>> is added to the computed value of ''auto'' or ''
11151116
}
11161117
.circle {
11171118
offset-position: 150px 150px;
1118-
width: 50px;
1119-
height: 50px;
1119+
offset-distance: 86%;
1120+
width: 42px;
1121+
height: 42px;
11201122
background-color: mediumpurple;
11211123
border-radius: 50%;
11221124
display: flex;
@@ -1125,32 +1127,26 @@ The computed value of <<angle>> is added to the computed value of ''auto'' or ''
11251127
}
11261128
#item1 {
11271129
offset-path: ray(0deg closest-side);
1128-
offset-distance: 90%;
11291130
offset-rotate: auto 90deg;
11301131
}
11311132
#item2 {
11321133
offset-path: ray(45deg closest-side);
1133-
offset-distance: 90%;
11341134
offset-rotate: auto 90deg;
11351135
}
11361136
#item3 {
11371137
offset-path: ray(135deg closest-side);
1138-
offset-distance: 90%;
11391138
offset-rotate: auto -90deg;
11401139
}
11411140
#item4 {
11421141
offset-path: ray(180deg closest-side);
1143-
offset-distance: 90%;
11441142
offset-rotate: auto -90deg;
11451143
}
11461144
#item5 {
11471145
offset-path: ray(225deg closest-side);
1148-
offset-distance: 90%;
11491146
offset-rotate: reverse 90deg;
11501147
}
11511148
#item6 {
11521149
offset-path: ray(-45deg closest-side);
1153-
offset-distance: 90%;
11541150
offset-rotate: reverse -90deg;
11551151
}
11561152
&lt;/style>

0 commit comments

Comments
 (0)