Skip to content

Commit dc6d0b0

Browse files
committed
disable transforms in ltx_para when applied to a standalone inline-block child
1 parent 7e877b0 commit dc6d0b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

css/ar5iv.css

+6-1
Original file line numberDiff line numberDiff line change
@@ -1538,7 +1538,12 @@ foreignObject .ltx_text {
15381538
.ltx_tr:only-child > .ltx_td:only-child > .ltx_inline-block > .ltx_transformed_inner,
15391539
.ltx_tr:only-child > .ltx_td:only-child > .ltx_p:only-child > .ltx_inline-block > .ltx_transformed_inner,
15401540
.ltx_tr:only-child > .ltx_td:only-child > .ltx_transformed_outer > .ltx_transformed_inner,
1541-
.ltx_tr:only-child > .ltx_td:only-child > .ltx_p:only-child > .ltx_transformed_outer > .ltx_transformed_inner {
1541+
.ltx_tr:only-child > .ltx_td:only-child > .ltx_p:only-child > .ltx_transformed_outer > .ltx_transformed_inner,
1542+
/* sometimes the inline block is *wrapping* the table, see
1543+
/* https://ar5iv.labs.arxiv.org/html/2110.07681#A1.p6.10
1544+
a :has(table) selector could be made more precise, when browser support is available. */
1545+
.ltx_para > .ltx_inline-block:only-child.ltx_transformed_outer > .ltx_transformed_inner
1546+
{
15421547
transform: none !important;
15431548
}
15441549

0 commit comments

Comments
 (0)