Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse srcset algo #10829

Closed
wants to merge 10 commits into from

added imagesrc struct

  • Loading branch information
akhan7 committed Apr 25, 2016
commit a771e58cd4f4988df880dbd6c399f9fb62bbabea
@@ -403,8 +403,13 @@ fn image_dimension_setter(element: &Element, attr: Atom, value: u32) {
let value = AttrValue::Dimension(DOMString::from(value.to_string()), dim);
element.set_attribute(&attr, value);
}

struct ImageSource {
candidates: String,
}

fn parse_a_srcset_attribute(input: String){
let position = &input;

}
impl ImageSource{
fn parse_a_srcset_attribute(&self, input: String) -> ImageSource {
let position = &input;
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.