File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
unpacked/jax/output/HTML-CSS Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2868
2868
//
2869
2869
// Add color (if any)
2870
2870
//
2871
- this . HTMLhandleColor ( span ) ;
2871
+ var color = this . HTMLhandleColor ( span ) ;
2872
2872
//
2873
2873
// Make math span be the correct height and depth
2874
2874
//
2896
2896
right : { marginLeft : HTMLCSS . Em ( Math . max ( 0 , span . bbox . w + shift ) ) , marginRight : HTMLCSS . Em ( - shift ) } ,
2897
2897
center : { marginLeft : HTMLCSS . Em ( shift ) , marginRight : HTMLCSS . Em ( - shift ) }
2898
2898
} ) [ values . indentalign ] ) ;
2899
+ //
2900
+ // Move the background color, of any
2901
+ //
2902
+ if ( color ) {
2903
+ color . style . marginLeft = HTMLCSS . Em ( parseFloat ( color . style . marginLeft ) + shift ) ;
2904
+ color . style . marginRight =
2905
+ HTMLCSS . Em ( parseFloat ( color . style . marginRight ) - shift
2906
+ + ( values . indentalign === "right" ? Math . min ( 0 , span . bbox . w + shift ) - span . bbox . w : 0 ) ) ;
2907
+ }
2899
2908
}
2900
2909
}
2901
2910
return span ;
You can’t perform that action at this time.
0 commit comments