Skip to content

border-radius not working in \style #3365

Open
@heinrich26

Description

@heinrich26

Issue Summary

The shorthand CSS-property border-radius doesn't work in \style{...}{...}-macros from the tex/html-package. The longhand ones (e.g. border-top-left-radius) do work for some reason.

Steps to Reproduce

see this codepen: https://codepen.io/ddubyah/pen/nJXWoR

or try the following code:

\style{border-radius: 8px; border: 2pt solid blue;}{\bbox[10pt]{hello}}

% macro to set all radii at once:
\newcommand\borderRadius[2]{\style{border-top-left-radius: #1; border-top-right-radius: #1; border-bottom-left-radius: #1; border-bottom-right-radius: #1; border: 2pt solid blue;}{#2}}

% normal radii    
\borderRadius{8px}{\bbox[10pt]{hello}}
% equivalent to:
\style{border-top-left-radius: 8px; border-top-right-radius: 8px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border: 2pt solid blue;}{\bbox[10pt]{hello}}
% elliptical radii
\borderRadius{4px 10px}{\bbox[10pt]{hello}}

Image

Technical details

  • MathJax Version: v3 latest
  • Client OS: Windows 11 24H2
  • Browser: Chrome 136.0.7103.93

I am using the following MathJax configuration:

MathJax = {};

and loading MathJax via

<script type="text/javascript" id="MathJax-script" async
  src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js">
</script>

Additional Info

I tried tracing the removal of the border-radius-property in code, but cloudn't find anything

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions