()
| 1788 | |
| 1789 | #[test] |
| 1790 | fn apply_width_attribute_img() { |
| 1791 | let inliner = CSSInliner::options().apply_width_attributes(true).build(); |
| 1792 | let html = r#"<html><head><style>img { width: 100px; }</style></head><body><img src="test.jpg"></body></html>"#; |
| 1793 | let result = inliner.inline(html).unwrap(); |
| 1794 | assert!(result.contains(r#"width="100""#)); |
| 1795 | assert!(result.contains(r#"style="width: 100px;""#)); |
| 1796 | } |
| 1797 | |
| 1798 | #[test] |
| 1799 | fn apply_height_attribute_img() { |
nothing calls this directly
no test coverage detected