mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-10 18:40:27 -06:00
IDML: the default table style test reads fills through the style cascade
This commit is contained in:
@@ -1842,7 +1842,9 @@ fn absent_item_and_document_attributes_take_indesign_defaults() {
|
||||
let cols = t.options.alt_cols.as_ref().unwrap();
|
||||
assert_eq!((fills(cols), cols.first), (want.clone(), 2));
|
||||
let banded = d.styles.table.iter().find(|s| s.name == "Banded").unwrap();
|
||||
assert_eq!(fills(banded.alt_rows.as_ref().unwrap()), want);
|
||||
let mut bt = designcraft_doc::Table::new(0, 1, 1, 0, 0, 100.0);
|
||||
d.styles.resolve_table_style(&banded.name).apply_to(&mut bt, &d.styles.cell);
|
||||
assert_eq!(fills(bt.options.alt_rows.as_ref().unwrap()), want);
|
||||
let c = t.cell(0, 0).unwrap();
|
||||
assert_eq!((c.insets, c.vj, c.fill.as_str()), ([4.0; 4], VerticalJustification::Top, "[None]"));
|
||||
for e in &c.strokes {
|
||||
|
||||
Reference in New Issue
Block a user