-
Notifications
You must be signed in to change notification settings - Fork 14
Table related IDL alignments? #166
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
Comments
I think one of the question to address first is "how much tabular support we want in MathML Core?". The full spec has a lot of other attributes/elements: https://w3c.github.io/mathml/#presm_tabmat I can see the point of using a dedicated MathML element to represent matrices or column vectors for example, but I suspect many use cases are not semantic-related but layout-related, like aligning a succession of equalities, grouping equations, labeling a formula, etc In that case, it seems more appropriate to rely on CSS features than introducing new attributes/elements. I guess we have a similar story with HTML where tables were used in the past for layout purpose and new CSS features were introduced to address these use cases. My concern is that if we start introducing an IDL for the simple thing we have now in MathML Core, it's likely people will want to extend it for all the tabular attributes/elements in MathML Full in the future... |
More comments:
|
I'm copying here some tests for parsing of colspan/rowspan from #180. These are quite tedious to write & read and would benefit from having a simple IDL.
|
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. TODO: send I2S. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. TODO: send I2S. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. TODO: send I2S. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. TODO: send I2S. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. TODO: send I2S. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the colspan and rowspan attributes from MathML, which have same syntax and semantics as the HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890
This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#1169551}
This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#1169551}
…tributes, a=testonly Automatic update from web-platform-tests [mathml] Implement columnspan/rowspan attributes This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#1169551} -- wpt-commits: 2d62964773ab36924d29c924ee6e0dc2b30fe49f wpt-pr: 38296
…tributes, a=testonly Automatic update from web-platform-tests [mathml] Implement columnspan/rowspan attributes This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <fwangigalia.com> Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Cr-Commit-Position: refs/heads/main{#1169551} -- wpt-commits: 2d62964773ab36924d29c924ee6e0dc2b30fe49f wpt-pr: 38296 UltraBlame original commit: 8b7d38c432983d7bf759ccb09953309f37c11c95
…tributes, a=testonly Automatic update from web-platform-tests [mathml] Implement columnspan/rowspan attributes This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <fwangigalia.com> Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Cr-Commit-Position: refs/heads/main{#1169551} -- wpt-commits: 2d62964773ab36924d29c924ee6e0dc2b30fe49f wpt-pr: 38296 UltraBlame original commit: 8b7d38c432983d7bf759ccb09953309f37c11c95
…tributes, a=testonly Automatic update from web-platform-tests [mathml] Implement columnspan/rowspan attributes This CL implements the columnspan and rowspan attributes from MathML, which have same syntax and semantics as corresponding HTML attributes [1]. New WPT tests are added to check table layout with these attributes. However, parsing tests are written as internal ones until MathML as a proper IDL [2]. Intent to ship thread is at [3]. To help with that implementation, a new MathMLTableCellElement class is introduced for the <mtd> element. This also simplifies other places where MathML table cells are handled specially. [1] https://w3c.github.io/mathml-core/#entry-in-table-or-matrix-mtd [2] w3c/mathml-core#166 [3] https://groups.google.com/a/chromium.org/g/blink-dev/c/SqIQf6nKxxk Bug: 1371806 Change-Id: I389e60becf8956fc30ab4043b261982a2813f890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4061476 Commit-Queue: Frédéric Wang <fwangigalia.com> Reviewed-by: Ian Kilpatrick <ikilpatrickchromium.org> Cr-Commit-Position: refs/heads/main{#1169551} -- wpt-commits: 2d62964773ab36924d29c924ee6e0dc2b30fe49f wpt-pr: 38296 UltraBlame original commit: 8b7d38c432983d7bf759ccb09953309f37c11c95
A lot of the co-evolutionary features of MathML are aligned in Core L1, and at least we have basic IDL support - but differences remain. Math tables are very similar to HTML tables in many ways - but not in terms of IDL. HTML provides some special table-oriented IDL which it ?might make sense to align in MathML eventually too - for example, some reflecting attributes and access to things like which row index it is, and so on... These are in the spec as, for example
https://html.spec.whatwg.org/#the-tr-element
https://html.spec.whatwg.org/#the-td-element
I suppose the question is "how portable is similar knowledge" across the platform
The text was updated successfully, but these errors were encountered: