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
HTMLImageElement::matches_environment doesn't look quite right. #21587
Comments
I added a couple FIXMEs for this in #21588 |
cc @nupurbaghel |
So finally it has been solved then ? |
It has not been solved. |
I tried using min-width, max-width queries as well as different combinations of width of images in srcset and according to my understanding, what is happening for now is-
As I currently do not realize well how do the 2 parse modes actually differ, any ideas on how to write a test which will give differing tests on both of these will be really beneficial. Just for reference, the iframe below with the mentioned img tag displays a red image -
|
So, I think we're very lax with the parsing of |
It's passing
ParsingMode::all()
, which doesn't really seem like it wants to pass, it should probably passDEFAULT
instead.This should be testable, I think in Servo the
sizes
attribute will incorrectly work withmin-width: <integer>
or such.The text was updated successfully, but these errors were encountered: