()
| 1866 | |
| 1867 | #[test] |
| 1868 | fn skip_existing_height_attribute() { |
| 1869 | // Don't override existing HTML attributes |
| 1870 | let inliner = CSSInliner::options().apply_height_attributes(true).build(); |
| 1871 | let html = r#"<html><head><style>img { height: 100px; }</style></head><body><img height="200"></body></html>"#; |
| 1872 | let result = inliner.inline(html).unwrap(); |
| 1873 | assert!(result.contains(r#"height="200""#)); |
| 1874 | assert!(!result.contains(r#"height="100""#)); |
| 1875 | } |
| 1876 | |
| 1877 | #[test] |
| 1878 | fn ignore_complex_css_values() { |
nothing calls this directly
no test coverage detected