File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,9 +228,10 @@ impl Parse for TextOverflow {
228228 context : & ParserContext ,
229229 input : & mut Parser < ' i , ' t > ,
230230 ) -> Result < TextOverflow , ParseError < ' i > > {
231- let first = TextOverflowSide :: parse ( context, input) ?;
231+ let first = < TextOverflowSide as Parse > :: parse ( context, input) ?;
232232 Ok (
233- if let Ok ( second) = input. try_parse ( |input| TextOverflowSide :: parse ( context, input) ) {
233+ #[ cfg( feature = "gecko" ) ]
234+ if let Ok ( second) = input. try_parse ( |input| <TextOverflowSide as Parse >:: parse ( context, input) ) {
234235 Self {
235236 first,
236237 second,
@@ -243,6 +244,12 @@ impl Parse for TextOverflow {
243244 sides_are_logical : true ,
244245 }
245246 } ,
247+ #[ cfg( feature = "servo" ) ]
248+ Self {
249+ first : TextOverflowSide :: Clip ,
250+ second : first,
251+ sides_are_logical : true ,
252+ }
246253 )
247254 }
248255}
You can’t perform that action at this time.
0 commit comments