Open Bug 1449070 Opened 8 years ago Updated 4 years ago

Allow mathematical expressions in image sizes

Categories

(Core :: DOM: Core & HTML, defect, P3)

59 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: musgravejw, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36 Steps to reproduce: Steps: Added mathematical functions (https://drafts.csswg.org/css-values/#math-function) in image sizes attribute. Currently `calc()` is supported as a CSS mathematical function. The CSS Values and Units Level 4 Specification describes a list of math functions [1] consisting of `calc()` in addition to `min()` and `max()`. Suggest implementing recent specification changes. The motivation for opening this bug is the reference to the aforementioned mathematical functions in the HTML Standard [2], which supports the appearance of mathematical functions in the `sizes` attribute on <img> elements. [1]: https://drafts.csswg.org/css-values/#math-function [2]: https://github.com/whatwg/html/pull/3084 & https://github.com/w3c/web-platform-tests/pull/10167 Actual results: No action. Expected results: Size attribute should be calculated based on corresponding mathematical function.
Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.