()
| 1908 | |
| 1909 | #[test] |
| 1910 | fn apply_auto_width() { |
| 1911 | // auto should be passed through |
| 1912 | let inliner = CSSInliner::options().apply_width_attributes(true).build(); |
| 1913 | let html = r#"<html><head><style>img { width: auto; }</style></head><body><img></body></html>"#; |
| 1914 | let result = inliner.inline(html).unwrap(); |
| 1915 | assert!(result.contains(r#"width="auto""#)); |
| 1916 | } |
| 1917 | |
| 1918 | #[test] |
| 1919 | fn apply_unitless_width() { |
nothing calls this directly
no test coverage detected