00:00 | <sideshowbarker> | Is there a specific reason that the indices are backwards from typical math convention? AFAIK, m_12 is typically row 1 column 2, but with DOMMatrix m12 is row 2 column 1 |
00:00 | <TabAtkins> | I presume that's just how graphics programmers usually write their matrixes. |
00:00 | <TabAtkins> | (I have no idea.) |
00:04 | <sideshowbarker> | Sgeo: or actually if you want to open an issue, use the Report a problem with this content on GitHub link at the bottom of https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix#on-github |
00:04 | <sideshowbarker> | dang |
00:07 | <Sgeo> | Now I'm confusing myself |
00:08 | <Sgeo> | MDN matches the spec, n/m. |
06:34 | <devsnek> | how come srcset doesn't take the size of the image element into account? |
06:35 | <devsnek> | by which i mean it seems to assume the image will be displayed at 100% viewport width |
14:53 | <TabAtkins> | devsnek that's what the sizes attribute is for. We can't wait for CSS, as we want to start loading immediately. |
14:54 | <devsnek> | i don't get sizes tbh |
14:54 | <devsnek> | if i know the size of what i'm displaying i can just load that size instead of supplying a srcset |
14:54 | <devsnek> | also the css is definitely already loaded |
14:56 | <TabAtkins> | No, you can't. The size might be %, so you won't know it until you know the viewport. |
14:56 | <devsnek> | i do know the size of the viewport, js is being used |
14:57 | <TabAtkins> | And we can't reasonably "sometimes" use the CSS depending on the when in the page you add it |
14:57 | <devsnek> | ok taking a step back |
14:57 | <TabAtkins> | Well then you can use JS to figure out what size it needs to be? |
14:57 | <devsnek> | maybe some sort of option to tell it to use the calculated img style if available |
14:58 | <devsnek> | opting into weirdness cuz you know the css will be available |
14:58 | <devsnek> | well the idea i initially had was |
14:58 | <devsnek> | a react element for cdn assets that automatically knows how to select the correct image type and size using <source> and srcset |
14:59 | <devsnek> | where you don't have to style it with a size and then duplicate that size info in the js |
15:01 | <TabAtkins> | Well that's not the problem we were solving 😀 |
15:01 | <devsnek> | so it would seem |
15:02 | <devsnek> | idk, selecting the right image based on the size of the element seems like a boon |
19:55 | <GPHemsley> | annevk: Addressed your comments. https://github.com/web-platform-tests/wpt/pull/30403 |
19:56 | <GPHemsley> | jgraham: Your advice requested ^ |