mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Substitute var() in custom properties at computed value time.
This commit is contained in:
parent
7bcf9f0c9a
commit
1c1a9379a3
2 changed files with 113 additions and 34 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
use std::ascii::AsciiExt;
|
||||
use std::borrow::ToOwned;
|
||||
use std::collections::HashSet;
|
||||
use std::collections::{HashSet, HashMap};
|
||||
use std::default::Default;
|
||||
use std::fmt;
|
||||
use std::fmt::Debug;
|
||||
|
@ -5857,7 +5857,8 @@ pub struct ComputedValues {
|
|||
% for style_struct in STYLE_STRUCTS:
|
||||
${style_struct.ident}: Arc<style_structs::${style_struct.name}>,
|
||||
% endfor
|
||||
custom_properties: Option<Arc<::custom_properties::Map>>,
|
||||
/// Names (atoms) do not include the `--` prefix.
|
||||
custom_properties: Option<Arc<HashMap<Atom, String>>>,
|
||||
shareable: bool,
|
||||
pub writing_mode: WritingMode,
|
||||
pub root_font_size: Au,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue