In cleaning up some aspects of the specification around aspect-ratio, I found that WebKit fails a bunch of tests: https://github.com/web-platform-tests/wpt/pull/28932. Cleanup happening in https://github.com/whatwg/html/pull/6529.
Cathie, IIRC you implemented this for one of video, image or canvas? We probably have existing bugs for these, which if fixed would fix these tests.
I think bugs like this have to be fixed first: https://bugs.webkit.org/show_bug.cgi?id=217529
Ah thanks for finding that Rob! that might be the whole issue here for all I know.
(In reply to Rob Buis from comment #1) > Cathie, IIRC you implemented this for one of video, image or canvas? We > probably have existing bugs for these, which if fixed would fix these tests. Yeah, I'm working on implementing this for video and picture. It seems most failures are `test_computed_style_aspect_ratio` which is related to bug 217529, i.e. implement mapping width height to aspect ratio by using CSS aspect-ratio. Currently, the implementation in WebKit does not depend on CSS aspect-ratio.
<rdar://problem/78149269>