Skip to content

Commit 5b664e6

Browse files
authored
Merge pull request #686 from mathjax/mtable-css
Prevent border-spacing and border-collapse from being inherited from an outer table
2 parents 3aeb542 + 480cf3e commit 5b664e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ts/output/chtml/Wrappers/mtable.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ CommonMtableMixin<CHTMLmtd<any, any, any>, CHTMLmtr<any, any, any>, CHTMLConstru
5656
'vertical-align': '.25em',
5757
'text-align': 'center',
5858
'position': 'relative',
59-
'box-sizing': 'border-box'
59+
'box-sizing': 'border-box',
60+
'border-spacing': 0, // prevent this from being inherited from an outer table
61+
'border-collapse': 'collapse' // similarly here
6062
},
6163
'mjx-mstyle[size="s"] mjx-mtable': {
6264
'vertical-align': '.354em'

0 commit comments

Comments
 (0)