Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

raea-page-host drops stylo, which moved with the page's accessibility; a blank text node is told by its element

shinyobjectz9471ceb76b40
diff --git a/Cargo.lock b/Cargo.lock
index c9c1c30a..ddf4cc73 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14929,7 +14929,6 @@ dependencies = [
"raea-sys-fonts",
"raea-sys-page",
"serde_json",
- "stylo",
"tiny_http",
]
diff --git a/engine/page/host/Cargo.toml b/engine/page/host/Cargo.toml
index d18c0b3f..9676893b 100644
--- a/engine/page/host/Cargo.toml
+++ b/engine/page/host/Cargo.toml
@@ -44,7 +44,6 @@ raea-runtime-input = { path = "../../../runtime/input" }
raea-io-media = { path = "../../../io/media", default-features = false, features = ["apple"] }
blitz-traits = "=0.3.0-beta.4"
blitz-dom = { version = "=0.3.0-beta.4", default-features = false }
-stylo = "=0.22.0"
image = { version = "0.25", default-features = false, features = ["png"] }
serde_json = "1"
# the live stage: <img data-raea-stage> (raea-page-stage)
diff --git a/systems/a11y/src/lib.rs b/systems/a11y/src/lib.rs
index 303ac070..ccb82013 100644
--- a/systems/a11y/src/lib.rs
+++ b/systems/a11y/src/lib.rs
@@ -270,14 +270,15 @@ pub fn tree<K: Copy + Eq + std::hash::Hash>(els: HashMap<K, El<K>>, roots: HashM
let mut tested = vec![];
// a text node of only white space (the markup's line breaks and indents) is no node, as in Chrome's tree: a screen
// reader would stop on each
- let blank = |k: &K| cx.els.get(k).is_some_and(El::blank);
for (&k, el) in &cx.els {
- if blank(&k) {
+ if el.blank() {
continue;
}
let mut n = node_of(&cx, k, el, focus);
for c in &el.kids {
- if cx.els.contains_key(c) && !blank(c) {
+ if let Some(kid) = cx.els.get(c)
+ && !kid.blank()
+ {
n.push_child(NodeId(id_of(*c)));
}
}