Skip to content

Cursor Height #4

@scientificware

Description

@scientificware

The purpose of this issue is to solve problems with MathML and caret height.

This is tracked in WebKit Bugzilla Stream as

Status :

Description Understood Patch Writing Internal Tests Pull Resqueted Accepted
✔️ ✔️ 🚧

?

  • Description : The caret has the same size than the character (but not the font size, see JavaFX and MathML. javafxports/openjdk-jfx#71). This problem is specific to the MathML support. With normal text, the caret height is the font height. Solution : Anyway the implemented logic is not correct : the cursor size has to be equal to the parent or height (that's why, it is important to correct MathML code when loads a file or paste, see below about these add and remove corrections). In the following example, move from the left to the right, you can see that the caret height is good outside the formula and too small inside.

    <p>Just a fraction example to test the Caret moves : 
       <math>
          <mrow>
             <mi>A</mi>
             <mo>=</mo>
             <mfrac>
                <mrow><mn>2</mn></mrow>
                <mrow><mn>8</mn></mrow>
             </mfrac>
             <mo>+</mo>
             <mfrac>
                <mrow>
                   <mn>12</mn>
                   <mo>-</mo>
                   <mfrac>
                      <mrow><mn>567</mn></mrow>
                      <mrow><mn>17</mn></mrow>
                   </mfrac>
                </mrow>
                <mrow><mn>37858727</mn></mrow>
             </mfrac>
          </mrow>
       </math>
      . But you can do the calculus, if you want.
    </p>
    

    The caret height should be the same on the two pictures. Its height should be its height just after the word 'test'. That's the usual behavior. So, its size before '+' is wrong.
    screenshot_20180813_004449
    screenshot_20180813_004544

Metadata

Metadata

Labels

BugSomething isn't workingWIPWork In Progress

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions