-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
||
## Value | ||
|
||
The possible values are: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure the values were top
, bottom
, center
, middle
, and baseline
. IE5 supported justify
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right. Fixing. We don't need to list justify
anymore, though.
Co-authored-by: skyclouds2001 <[email protected]>
Co-authored-by: skyclouds2001 <[email protected]>
Co-authored-by: skyclouds2001 <[email protected]>
Co-authored-by: skyclouds2001 <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few edits, but approving to not hold you up.
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Co-authored-by: Estelle Weyl <[email protected]>
Thank you, @estelle! |
Description
This PR adds docs for the two properties:
HTMLTableCellElement.align
HTMLTableCellElement.valign
Motivation
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-align
andvertical-align
Additional 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