Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

definition of children? #133

Closed
bkardell opened this issue Sep 10, 2019 · 2 comments
Closed

definition of children? #133

bkardell opened this issue Sep 10, 2019 · 2 comments
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification

Comments

@bkardell
Copy link
Collaborator

A bunch of stuff in the spec refers to children of elements, and it looks like we even do some things in the CSS based on counts/position of children but the meaning here might be unfamilliar to me? For example in 3.4.2.1 Children of , , I am read this as that a <msubsup> with 4 children should lay out as a <mrow>, and indeed if I give it markup like this:

    <math style="display:block;">
      <mrow>
        <munderover>
          <mo>∏</mo>
          <mrow>
            <mi>j</mi>
            <mo>=</mo>
            <mn>0</mn>
          </mrow>
          <mo>f</mo>
          <mo>f</mo>
      </mrow>
    </math>

I get, nothing in ff, an error in safari, and what is described in the spec (I think) in Igalia's current Chromium fork (78.0.3898.0 r c97bb8d2d82b9c7470e8f5115f8d657d5c7f3615-refs/heads/master@{#691974})

A test for someone to confirm

but if I made the actual 3rd child have style="display:none", this appears to render as if that child doesn't exist at all - in all of the browsers... So, do I misunderstand something or are our current words just inadequate?

And the test for that should be here

@fred-wang
Copy link

This needs to be updated after we reach consensus on w3c/mathml-core#136 and #48 ; currently definitions are copied from MathML3 which only rely on the DOM tree, not on the CSS visual formatting model.

The summary is:

There are probably some places where "children" still means children in the element tree. For example, that's always the case for CSS selectors in the UA sheets. In practice, people don't use out-of-flow or "display: none" elements so definitions will match.

@fred-wang
Copy link

This is now clarified.

@fred-wang fred-wang added MathML Core Issues affecting the MathML Core specification css / html5 Issues related to CSS or HTML5 interoperability labels Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification
Projects
None yet
Development

No branches or pull requests

2 participants