Repository navigation
Add dir global attribute feature - #4533
Merged
Merged
Conversation
ddbeck
reviewed
Oct 19, 2026
| description: The `dir` global HTML attribute sets an element's text direction to left to right (`ltr`) or right to left (`rtl`), or determines it from the content (`auto`). Elements generally inherit their parent's direction when the attribute is omitted. | ||
| spec: https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute | ||
| compat_features: | ||
| - html.global_attributes.dir |
Collaborator
There was a problem hiding this comment.
It would be nice to bring over the API from the dom feature. This suggestion would add the key, but it would still need to be dropped from the other feature. (Run npm run undist -- features/dom.yml first, to make that list editable.)
(If this is too much hassle, let me know and I can open a follow up PR.)
Suggested change
| - html.global_attributes.dir | |
| - api.HTMLElement.dir | |
| - html.global_attributes.dir |
Comment on lines
+6
to
+7
| baseline_low_date: ≤2017-04-05 | ||
| baseline_high_date: ≤2019-10-05 |
Collaborator
There was a problem hiding this comment.
The uncertainty in the data here is a little bit annoying, so I sent mdn/browser-compat-data#30915 upstream to resolve it. It's not a blocker, though.
Contributor
Author
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.