This repository was archived by the owner on Jul 10, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,10 @@ pub impl<'self> ComputedStyle<'self> {
137
137
convert_net_text_align_value ( self . inner . text_align ( ) )
138
138
}
139
139
140
+ pub fn text_decoration ( & self ) -> CSSValue < CSSTextDecoration > {
141
+ convert_net_text_decoration_value ( self . inner . text_decoration ( ) )
142
+ }
143
+
140
144
// CSS 2.1, Section 17 - Tables
141
145
142
146
// CSS 2.1, Section 18 - User interface
@@ -309,6 +313,17 @@ fn convert_net_text_align_value(value: n::v::CssTextAlignValue) -> CSSValue<CSST
309
313
}
310
314
}
311
315
316
+ fn convert_net_text_decoration_value ( value : n:: v:: CssTextDecorationValue ) -> CSSValue < CSSTextDecoration > {
317
+ match value {
318
+ n:: v:: CssTextDecorationInherit => Inherit ,
319
+ n:: v:: CssTextDecorationNone => Specified ( CSSTextDecorationNone ) ,
320
+ n:: v:: CssTextDecorationBlink => Specified ( CSSTextDecorationBlink ) ,
321
+ n:: v:: CssTextDecorationLineThrough => Specified ( CSSTextDecorationLineThrough ) ,
322
+ n:: v:: CssTextDecorationOverline => Specified ( CSSTextDecorationOverline ) ,
323
+ n:: v:: CssTextDecorationUnderline => Specified ( CSSTextDecorationUnderline ) ,
324
+ }
325
+ }
326
+
312
327
fn convert_net_line_height_value ( value : n:: v:: CssLineHeightValue ) -> CSSValue < CSSLineHeight > {
313
328
match value {
314
329
n:: v:: CssLineHeightInherit => Inherit ,
You can’t perform that action at this time.
0 commit comments