File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 1392
1392
span . style . top = this . Em ( - h ) ;
1393
1393
} else {
1394
1394
span . style . verticalAlign = this . Em ( h ) ;
1395
- if ( HTMLCSS . ffVerticalAlignBug ) { HTMLCSS . createRule ( span . parentNode , span . bbox . h , 0 , 0 ) }
1395
+ if ( HTMLCSS . ffVerticalAlignBug ) {
1396
+ HTMLCSS . createRule ( span . parentNode , span . bbox . h , 0 , 0 ) ;
1397
+ delete span . parentNode . bbox ;
1398
+ }
1396
1399
}
1397
1400
}
1398
1401
} ,
2934
2937
( HUB . config . root + "/" ) . substr ( 0 , root . length ) === root ) { webFonts = "otf" }
2935
2938
}
2936
2939
HTMLCSS . Augment ( {
2937
- ffVerticalAlignBug : true ,
2940
+ ffVerticalAlignBug : ! browser . versionAtLeast ( "20.0" ) , // not sure when this bug was fixed
2938
2941
AccentBug : true ,
2939
2942
allowWebFonts : webFonts
2940
2943
} ) ;
Original file line number Diff line number Diff line change 1325
1325
} ,
1326
1326
1327
1327
SVGcanStretch : function ( direction ) {
1328
- if ( this . isEmbellished ( ) ) { return this . Core ( ) . SVGcanStretch ( direction ) }
1329
- return false ;
1328
+ var can = false ;
1329
+ if ( this . isEmbellished ( ) ) {
1330
+ var core = this . Core ( ) ;
1331
+ if ( core && core !== this ) {
1332
+ can = core . SVGcanStretch ( direction ) ;
1333
+ if ( can && core . forceStretch ) { this . forceStretch = true }
1334
+ }
1335
+ }
1336
+ return can ;
1330
1337
} ,
1331
1338
SVGstretchV : function ( h , d ) { return this . toSVG ( h , d ) } ,
1332
1339
SVGstretchH : function ( w ) { return this . toSVG ( w ) } ,
1425
1432
CoreParent : function ( ) {
1426
1433
var parent = this ;
1427
1434
while ( parent && parent . isEmbellished ( ) &&
1428
- parent . CoreMO ( ) === this && ! parent . isa ( MML . math ) ) { parent = parent . Parent ( ) }
1435
+ parent . CoreMO ( ) === this && ! parent . isa ( MML . math ) ) { parent = parent . Parent ( ) }
1429
1436
return parent ;
1430
1437
} ,
1431
1438
CoreText : function ( parent ) {
1486
1493
this . SVGhandleColor ( svg ) ;
1487
1494
delete this . svg . element ;
1488
1495
this . SVGsaveData ( svg ) ;
1496
+ svg . stretched = true ;
1489
1497
return svg ;
1490
1498
} ,
1491
1499
SVGstretchH : function ( w ) {
1502
1510
this . SVGhandleColor ( svg ) ;
1503
1511
delete this . svg . element ;
1504
1512
this . SVGsaveData ( svg ) ;
1513
+ svg . stretched = true ;
1505
1514
return svg ;
1506
1515
}
1507
1516
} ) ;
You can’t perform that action at this time.
0 commit comments