()
| 1917 | |
| 1918 | #[test] |
| 1919 | fn apply_unitless_width() { |
| 1920 | // Unitless values should work (treated as pixels) |
| 1921 | let inliner = CSSInliner::options().apply_width_attributes(true).build(); |
| 1922 | let html = r#"<html><head><style>img { width: 100; }</style></head><body><img></body></html>"#; |
| 1923 | let result = inliner.inline(html).unwrap(); |
| 1924 | assert!(result.contains(r#"width="100""#)); |
| 1925 | } |
| 1926 | |
| 1927 | #[test] |
| 1928 | fn dimension_attributes_disabled_by_default() { |
nothing calls this directly
no test coverage detected