diff --git a/Cargo.lock b/Cargo.lock index 343c438..6f76422 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -96,6 +96,7 @@ version = "0.1.0" dependencies = [ "we-css", "we-dom", + "we-html", ] [[package]] diff --git a/crates/browser/src/main.rs b/crates/browser/src/main.rs index 48e7920..018b972 100644 --- a/crates/browser/src/main.rs +++ b/crates/browser/src/main.rs @@ -5,18 +5,26 @@ use we_layout::layout; use we_platform::appkit; use we_platform::cg::BitmapContext; use we_render::Renderer; +use we_style::computed::{extract_stylesheets, resolve_styles}; use we_text::font::{self, Font}; /// Default HTML page shown when no file argument is provided. const DEFAULT_HTML: &str = r#" -
This is a from-scratch web browser engine written in pure Rust.
Zero external crate dependencies. Every subsystem is implemented in Rust.
HTML5 tokenizer, DOM tree, block layout, and software rendering.
+HTML5 tokenizer, DOM tree, block layout, CSS cascade, and software rendering.
"#; @@ -33,7 +41,7 @@ thread_local! { static STATE: RefCell