gaiuscoffey
gaiuscoffey
KPCKevin Powell - Community
Created by gaiuscoffey on 4/17/2024 in #front-end
Follow up from yesterday: subgrid with different tags browser incompatibility.
No description
4 replies
KPCKevin Powell - Community
Created by gaiuscoffey on 4/16/2024 in #front-end
Grrr. @supports is wrong or subgrid is wrong. :(
So I had an idea for two column form layout using grid with fieldset using subgrid. It works perfectly in Firefox... but not in Edge or Chrome or... So I checked "canIuse" and it said support was everywhere. But then I check in F12 developer tools in Edge and it says "not supported in ... [long list of browsers]". So I decide to go for "@supports"... and it is still broken. So... Either a) "canIuse.com" is lying and a long list of browsers that it says support subgrid do not Or b) @supports is lying and a long list of browsers that it reports as supporting subgrid do not As it happens, I have an acceptable workaround that would work if @supports told the truth.
5 replies
KPCKevin Powell - Community
Created by gaiuscoffey on 2/28/2024 in #front-end
Why does prefers-color-scheme need duplication of styles?
I was watching KP's video on using dark / light themes: https://www.youtube.com/watch?v=zFFuV_vXNhY&t=36s And it works nicely, but it bothers me that the styles are duplicated in :root definitions as well as the theme switcher ":has" definition. Why is the duplication needed if I have selected the theme using color-scheme: [dark|light] declaration? It seems to override behaviour for system styles, but not anything I've defined. G
10 replies