File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
packages/runtime/native/shared Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -806,17 +806,15 @@ let backgrounds x =
806806let backgroundSize x =
807807 Rule. declaration ({js| backgroundSize| js}, BackgroundSize. toString x)
808808
809+ (* For backward compatibility *)
809810let textDecoration x =
810- (* For backward compatibility *)
811- let new_x =
812- match x with
813- | `underline -> TextDecorationLine.Value. make ~underline: true ()
814- | `overline -> TextDecorationLine.Value. make ~overline: true ()
815- | `lineThrough -> TextDecorationLine.Value. make ~line Through:true ()
816- | `blink -> TextDecorationLine.Value. make ~blink: true ()
817- | `none -> TextDecorationLine.Value. make ()
818- in
819- Rule. declaration ({js| textDecoration| js}, TextDecorationLine. toString new_x)
811+ let declaration = {js| textDecoration| js} in
812+ match x with
813+ | `underline -> Rule. declaration (declaration, {js| underline| js})
814+ | `overline -> Rule. declaration (declaration, {js| overline| js})
815+ | `lineThrough -> Rule. declaration (declaration, {js| line- through| js})
816+ | `blink -> Rule. declaration (declaration, {js| blink| js})
817+ | `none -> Rule. declaration (declaration, {js| none| js})
820818
821819let textDecorations ?line ?thickness ?style ?color () =
822820 Rule. declaration
You can’t perform that action at this time.
0 commit comments