-
Notifications
You must be signed in to change notification settings - Fork 14
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
Parsing of columnspan/rowspan #180
Comments
Just like we do with CSS color names, etc., I think it is best to point out to the HTML spec for the details. That way we don't have out of sync specs if they change some detail. On a slightly different note: I don't know why MathML uses |
I agree. Except that saying "the same syntax and semantics as HTML" and linking to the definitions at https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements (as it is currently done) makes the thing not obvious for the ranges... Basically the paragraph provides the accepted ranges but not how to handle out-of-range values unless you dig into the details of https://html.spec.whatwg.org/multipage/tables.html#algorithm-for-processing-rows Also for other attributes, we explain how invalid/absent values are handled or how attributes mapped to CSS (so we can just defer to the CSS parser) but AFAIK, there is not any equivalent CSS property for colspan/rowspan. So I'd prefer we add something in the line of "attributes are parsed as in 8 'algorithm for processing rows'". This can be an extra note the one of https://w3c.github.io/mathml-core/#html-and-svg or in the normative text.
I guess accepting Note that Note: We also don't have WPT tests for columnspan/rowspan, which is what the patch above is doing too. But the out-of-range is a bit trickier to test without the IDL @bkardell suggested. This is what I was experimenting the other day:
|
I think the normative text makes more sense if the text is aimed at developers. That way a developer working on those attrs will spot it when reading about them. Maybe something along the lines of [text about being the same as HTML] followed by "Like HTML, values over 1000 should be treated as being 1000 and that illegal values, including 0, should be treated as 1". I'll bring up changing |
I'm a little behind on this, but at the Dec 15 MathML Full meeting we discussed None of these attrs are in core and it is likely that alignment, spacing, and lines will be handled by CSS in core. Does CSS have a way to handle making all the columns have the same (minimal) width? If all of them can be handled by CSS, then compatibility with MathML Full's use of them is not that important. |
I would go with About the other attributes, someone would need to check the details. Some of this stuff can probably be handled by CSS but maybe not all. In any case, MathML 3 allows complicated attributes (whose values are array of properties) that won't be mappable to a single CSS property on an element. My preference is not to add any of these attributes to MathML Core for now and see how existing use cases can be handled with CSS and whether new CSS properties would need to be introduced for CSS tables to cover missing use cases. |
@fred-wang just to be clear on this point, since it was my preference in our last Full meeting - as an implementer you would be comfortable with keeping both naming variants ( Does that sound right? |
@dginev the idea is to have only |
I'm curious what's the status of this? Do we agree rename it to |
That's what I think we should do. We will have a core meeting next Monday, so that's a good time to resolve it. |
2023/01/30 meeting agreed to change to @dginev: needs to know when the implementation is going change so he and others can change the generated output for ar5iv to minimize breakage. |
Just as an FYI: I joked that we can generate both "colspan" and "columnspan" in LaTeXML, for a limited time, but hopefully that won't be the best path forward. |
Spec has been updated. Firefox and WebKit bugs: |
Mozilla positioned negatively regarding this change: mozilla/standards-positions#743 |
Given Mozilla's stance, how do we proceed? Not change the names? |
Going over the minutes, I understand the resolutin is to revert to columnspan. So will do it. |
OK I edited the spec to rename to columnspan. Regarding the original issue, the text now reads
which I guess is enough for implementers to understand how to parse. (note: I also rebased https://chromium-review.googlesource.com/c/chromium/src/+/4061476 and will send the intent-to-ship) |
From https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd
columnspan/rowspan are said to have the same syntax and semantics as HTML.
In https://html.spec.whatwg.org/multipage/tables.html#attributes-common-to-td-and-th-elements some limits are given for colspan/rowspan and the table model link leads to https://html.spec.whatwg.org/multipage/tables.html#algorithm-for-processing-rows which indicates how to handle parse the values (including out-of-range or invalid values):
I wonder if we need to state this more clearly in MathML Core's normative text? or maybe just add a note about that?
(Note: we don't have an IDL for columspan/rowspan, see #166 )
The text was updated successfully, but these errors were encountered: