Add HTMLTableCellElement.{align|vAlign}#32993
Conversation
|
Preview URLs
Flaws (13)Note! 3 documents with no flaws that don't need to be listed. 🎉 URL:
(comment last updated: 2024-04-10 15:01:55) |
estelle
left a comment
There was a problem hiding this comment.
I realize these are deprecated, but they both get and set. The "get" any value, even if not valid, with empty string if not present.
|
|
||
| {{APIRef("HTML DOM")}}{{deprecated_header}} | ||
|
|
||
| The **`HTMLTableCellElement.align`** property is a string indicating how to horizontally align text in the cell. |
There was a problem hiding this comment.
| The **`HTMLTableCellElement.align`** property is a string indicating how to horizontally align text in the cell. | |
| The **`HTMLTableCellElement.align`** property is a string indicating how to horizontally align text in the {{htmlelement("th")}} or {{htmlelement("td")}} table cell. |
we should include the two elements on which it is used as links. Not sure about having to mention "table", or linking to that.
also, it's a setter, but not a getter. should we mention that?
There was a problem hiding this comment.
Commited.
According to the IDL it is both a setter and a getter. (But it ignores the value of text-align of course). I don't think it needs more info here.
|
|
||
| The **`HTMLTableCellElement.align`** property is a string indicating how to horizontally align text in the cell. | ||
|
|
||
| **Note:** This property is deprecated and CSS should be used to horizontally align text in a cell. Use the {{cssxref("text-align")}} property instead. |
There was a problem hiding this comment.
| **Note:** This property is deprecated and CSS should be used to horizontally align text in a cell. Use the {{cssxref("text-align")}} property instead. | |
| **Note:** This property is deprecated. Use the CSS {{cssxref("text-align")}} property, which takes precedence, to horizontally align text in a cell instead. |
we should mention that it this JS has no effect if this property is set. this is my way of suggesting it. you may have a better suggestion.
|
|
||
| ## Value | ||
|
|
||
| The possible values are: |
There was a problem hiding this comment.
Pretty sure the values were top, bottom, center, middle, and baseline. IE5 supported justify as well.
There was a problem hiding this comment.
Yes, you are right. Fixing. We don't need to list justify anymore, though.
Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
Co-authored-by: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
|
I think I have addressed (or answered) all points. Ready for a second pass. |
|
(The linting failing test seems bogus. There are no errors listed, and I pushed from local, so the linter ran locally too (without error) |
I think the error was a simple space missing. If it's going to error, it should list the error. I found it by looking at the commit that first produced the green X. committing the space addition seems to have brought back the green x. |
estelle
left a comment
There was a problem hiding this comment.
a few edits, but approving to not hold you up.
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
|
Thank you, @estelle! |
Description
This PR adds docs for the two properties:
HTMLTableCellElement.alignHTMLTableCellElement.valignMotivation
These properties are supported by all engines.
Though deprecated, they are common tasks for beginners: we need documentation that points to the right way of doing this (TM), using
text-alignandvertical-alignAdditional details
There is no example as this is deprecated: the example sections point to examples using the modern (CSS) way of doing it so that they are one click away.
Related issues and pull requests
It is part of mdn/mdn#520