This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,762 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "rome_aria" | ||
version = "0.0.0" | ||
edition = "2021" | ||
authors = ["Rome Tools Developers and Contributors"] | ||
repository = "https://github.com/rome/tools" | ||
license = "MIT" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
rustc-hash = "1.1.0" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
//! Metadata of: | ||
//! - ARIA properties | ||
//! - ARIA property types | ||
//! - ARIA roles | ||
//! | ||
//! **Note**: the crate relies on `binary_search`, which means that the | ||
//! entries of all these constants must be ordered! | ||
|
||
pub const ARIA_PROPERTIES: [&str; 48] = [ | ||
"aria-activedescendant", | ||
"aria-atomic", | ||
"aria-autocomplete", | ||
"aria-busy", | ||
"aria-checked", | ||
"aria-colcount", | ||
"aria-colindex", | ||
"aria-colspan", | ||
"aria-controls", | ||
"aria-current", | ||
"aria-describedby", | ||
"aria-details", | ||
"aria-disabled", | ||
"aria-dropeffect", | ||
"aria-errormessage", | ||
"aria-expanded", | ||
"aria-flowto", | ||
"aria-grabbed", | ||
"aria-haspopup", | ||
"aria-hidden", | ||
"aria-invalid", | ||
"aria-keyshortcuts", | ||
"aria-label", | ||
"aria-labelledby", | ||
"aria-level", | ||
"aria-live", | ||
"aria-modal", | ||
"aria-multiline", | ||
"aria-multiselectable", | ||
"aria-orientation", | ||
"aria-owns", | ||
"aria-placeholder", | ||
"aria-posinset", | ||
"aria-pressed", | ||
"aria-readonly", | ||
"aria-relevant", | ||
"aria-required", | ||
"aria-roledescription", | ||
"aria-rowcount", | ||
"aria-rowindex", | ||
"aria-rowspan", | ||
"aria-selected", | ||
"aria-setsize", | ||
"aria-sort", | ||
"aria-valuemax", | ||
"aria-valuemin", | ||
"aria-valuenow", | ||
"aria-valuetext", | ||
]; | ||
|
||
pub const ARIA_PROPERTY_TYPE: [&str; 9] = [ | ||
"boolean", | ||
"id", | ||
"idlist", | ||
"integer", | ||
"number", | ||
"string", | ||
"token", | ||
"tokenlist", | ||
"tristate", | ||
]; | ||
|
||
pub const ARIA_WIDGET_ROLES: [&str; 27] = [ | ||
"alert", | ||
"alertdialog", | ||
"button", | ||
"checkbox", | ||
"dialog", | ||
"gridcell", | ||
"link", | ||
"log", | ||
"marquee", | ||
"menuitem", | ||
"menuitemcheckbox", | ||
"menuitemradio", | ||
"option", | ||
"progressbar", | ||
"radio", | ||
"scrollbar", | ||
"searchbox", | ||
"slider", | ||
"spinbutton", | ||
"status", | ||
"switch", | ||
"tab", | ||
"tabpanel", | ||
"textbox", | ||
"timer", | ||
"tooltip", | ||
"treeitem", | ||
]; | ||
|
||
pub const ARIA_ABSTRACT_ROLES: [&str; 12] = [ | ||
"command", | ||
"composite", | ||
"input", | ||
"landmark", | ||
"range", | ||
"roletype", | ||
"section", | ||
"sectionhead", | ||
"select", | ||
"structure", | ||
"widget", | ||
"window", | ||
]; | ||
|
||
pub const ARIA_DOCUMENT_STRUCTURE_ROLES: [&str; 25] = [ | ||
"article", | ||
"cell", | ||
"columnheader", | ||
"definition", | ||
"directory", | ||
"document", | ||
"feed", | ||
"figure", | ||
"group", | ||
"heading", | ||
"img", | ||
"list", | ||
"listitem", | ||
"math", | ||
"none", | ||
"note", | ||
"presentation", | ||
"region", | ||
"row", | ||
"rowgroup", | ||
"rowheader", | ||
"separator", | ||
"table", | ||
"term", | ||
"toolbar", | ||
]; |
Oops, something went wrong.