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

Dimension attributes and CSS don't give things intrinsic dimensions #2609

Open
bzbarsky opened this issue Apr 30, 2017 · 1 comment
Open

Comments

@bzbarsky
Copy link
Contributor

https://html.spec.whatwg.org/multipage/rendering.html#images-3 the second item says:

If the element does not represent an image, but the element already has intrinsic dimensions (e.g. from the dimension attributes or CSS rules)

which doesn't look right. The key part is whether its specified width/height are auto or not. Which is good, because CSS and dimensions attributes don't affect "intrinsic dimensions", as defined at https://drafts.csswg.org/css2/conform.html#intrinsic, by definition.

@bzbarsky
Copy link
Contributor Author

What Gecko does is check whether both computed width and computed height are length, percent, or calc. If they both are, Gecko does the replaced element thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants