Make editing/pasteboard/mathml-sanitizer-bypass.html to check MathML enabled
This patch changes "mathml-sanitizer-bypass.html" to check whether MathML enabled or not to choose valid expectation. As of May 2020, MathML is experimental feature and implemented on LayoutNG. When enabling EditingNG and pasting clipboard content into editable, MathML contents are rendered as MathML layout instead of non-MathML. For <math>B</math>, we have following layout tree: MathML enabled: LayoutNGMathMLBlock {math} at (0,0) size 0x0 LayoutText {#text} at (0,0) size 0x0 MathML disabled: LayoutInline {math} at (0,0) size 10x19 LayoutText {#text} at (0,0) size 10x19 text run at (0,0) width 10: "B" Bug: 707656 Change-Id: I722541655322cedda7ada53fa09e08d78fd2db5a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217758 Commit-Queue: Yoshifumi Inoue <yosin@chromium.org> Auto-Submit: Yoshifumi Inoue <yosin@chromium.org> Reviewed-by:Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#772572}
Showing
Please register or sign in to comment