找回密码
 快速注册
搜索
查看: 50|回复: 1

<mspace> negative width

[复制链接]

3149

主题

8387

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65396
QQ

显示全部楼层

hbghlyj 发表于 2022-9-2 09:05 |阅读模式
本帖最后由 hbghlyj 于 2022-9-17 14:05 编辑
developer.mozilla.org/en-US/docs/Web/MathML/Element/mspace#browser_compatibility
footnote: Support for negative values has been implemented in Firefox 23.
(根据Release notes, Firefox 23发布于2013年6月)
Screenshot 2022-09-02 at 02-02-12 mspace - MathML MDN.png
在我这边, Firefox支持width为正数的<mspace>, 但不支持width为负数的<mspace>, 实际显示宽度为零, 如图
怎么回事呢
(版本号104.0.1,发布于2022年8月30日, Release notes)
Quicker_20220902_020118.png

  1. <?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"[ <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">]><body><math xmlns="&mathml;">
  2.   <mi>a</mi>
  3.   <mspace width="-10px" />
  4.   <mi>b</mi>
  5. </math>
  6. </body>
复制代码

Base64 URL:
data:text/xml;charset=utf-8,%3C%3Fxml%20version%3D%221.0%22%3F%3E%3C%21DOCTYPE%20html%20PUBLIC%20%22-//W3C//DTD%20XHTML%201.1%20plus%20MathML%202.0//EN%22%20%22http%3A//www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd%22%5B%20%3C%21ENTITY%20mathml%20%22http%3A//www.w3.org/1998/Math/MathML%22%3E%5D%3E%3Cbody%3E%3Cmath%20xmlns%3D%22%26mathml%3B%22%3E%0A%20%20%3Cmi%3Ea%3C/mi%3E%0A%20%20%3Cmspace%20width%3D%22-10px%22%20/%3E%0A%20%20%3Cmi%3Eb%3C/mi%3E%0A%3C/math%3E%0A%3C/body%3E

3149

主题

8387

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65396
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-9-17 21:04
如果放到<mrow>里就可以得到正常的负宽度了.否则宽度为0.
测试一下
  1. <!DOCTYPE html><html><head></head><body><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mtable frame="solid"><mtr><mtd><mrow><mi>a</mi><mspace width="-.1667em"></mspace><mi>a</mi></mrow></mtd></mtr><mtr><mtd><mrow><mi>a</mi><mi>a</mi></mrow></mtd></mtr></mtable></math><br><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><mtable frame="solid"><mtr><mtd><mi>a</mi><mspace width="-.1667em"></mspace><mi>a</mi></mtd></mtr><mtr><mtd><mi>a</mi><mi>a</mi></mtd></mtr></mtable></math></body></html>
复制代码

Screenshot 2022-09-17 at 14-04-29 Screenshot.png
我已将这个问题报告至bugzilla.mozilla.org 1791266
相关问题:191847

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 16:08

Powered by Discuz!

× 快速回复 返回顶部 返回列表