@@ -812,7 +812,7 @@ export struct BorderBottomWidthProp {
812812 }
813813
814814 Res<> parse (Cursor<Css::Sst>& c) {
815- value = try $(parseValue<CalcValue <Length>>(c));
815+ value = try $(parseValue<Calc <Length>>(c));
816816 return Ok ();
817817 }
818818};
@@ -982,7 +982,7 @@ export struct BorderRadius {
982982
983983 static constexpr Str name () { return " border-radius" ; }
984984
985- static Math::Radii<Calc<Length>>> initial () { return {CalcValue<PercentOr <Length>(Length{})}; }
985+ static Math::Radii<Calc<Length>>> initial () { return {Calc <Length>(Length{})}; }
986986
987987 void apply (SpecifiedValues& c) const {
988988 c.borders .cow ().radii = value;
@@ -1014,7 +1014,7 @@ export struct BorderTopProp {
10141014
10151015 Res<> parse (Cursor<Css::Sst>& c) {
10161016 while (not c.ended ()) {
1017- auto width = parseValue<CalcValue <Length>>(c);
1017+ auto width = parseValue<Calc <Length>>(c);
10181018 if (width) {
10191019 value.width = width.unwrap ();
10201020 continue ;
@@ -1055,7 +1055,7 @@ export struct BorderRightProp {
10551055
10561056 Res<> parse (Cursor<Css::Sst>& c) {
10571057 while (not c.ended ()) {
1058- auto width = parseValue<CalcValue <Length>>(c);
1058+ auto width = parseValue<Calc <Length>>(c);
10591059 if (width) {
10601060 value.width = width.unwrap ();
10611061 continue ;
@@ -1096,7 +1096,7 @@ export struct BorderBottomProp {
10961096
10971097 Res<> parse (Cursor<Css::Sst>& c) {
10981098 while (not c.ended ()) {
1099- auto width = parseValue<CalcValue <Length>>(c);
1099+ auto width = parseValue<Calc <Length>>(c);
11001100 if (width) {
11011101 value.width = width.unwrap ();
11021102 continue ;
@@ -1137,7 +1137,7 @@ export struct BorderLeftProp {
11371137
11381138 Res<> parse (Cursor<Css::Sst>& c) {
11391139 while (not c.ended ()) {
1140- auto width = parseValue<CalcValue <Length>>(c);
1140+ auto width = parseValue<Calc <Length>>(c);
11411141 if (width) {
11421142 value.width = width.unwrap ();
11431143 continue ;
@@ -2199,7 +2199,7 @@ export struct OutlineProp {
21992199 Res<> parse (Cursor<Css::Sst>& c) {
22002200 bool styleSet = false ;
22012201 while (not c.ended ()) {
2202- auto width = parseValue<CalcValue <Length>>(c);
2202+ auto width = parseValue<Calc <Length>>(c);
22032203 if (width) {
22042204 value.width = width.unwrap ();
22052205 continue ;
@@ -2302,7 +2302,7 @@ export struct OutlineColorProp {
23022302
23032303// https://drafts.csswg.org/css-ui/#outline-offset
23042304export struct OutlineOffsetProp {
2305- CalcValue <Length> value = initial();
2305+ Calc <Length> value = initial();
23062306
23072307 static Str name () { return " outline-offset" ; }
23082308
@@ -2312,12 +2312,12 @@ export struct OutlineOffsetProp {
23122312 c.outline .cow ().offset = value;
23132313 }
23142314
2315- static CalcValue <Length> load (SpecifiedValues const & c) {
2315+ static Calc <Length> load (SpecifiedValues const & c) {
23162316 return c.outline ->offset ;
23172317 }
23182318
23192319 Res<> parse (Cursor<Css::Sst>& c) {
2320- value = try $(parseValue<CalcValue <Length>>(c));
2320+ value = try $(parseValue<Calc <Length>>(c));
23212321 return Ok ();
23222322 }
23232323};
0 commit comments