News for hackers. Stuff that matters.
Re:Ply: A Visual Web Inspector (2018) [slides] by rwesty on Sunday May 03, 2020 @12:32AM (#23056875)
Neat, it would be an interesting linting tool to help minify CSS. I was wondering why the pruning tool took so long but I can see they are using visuals to determine if a a style is needed or not. That's a really smart way to do it, I wonder what other use cases there are for mapping visual images to code. This is almost like a selenium test for CSS.
Re:Ply: A Visual Web Inspector (2018) [slides] by hackingthenews on Sunday May 03, 2020 @01:41AM (#23057104)
I wonder how broad the definition of effectiveness is in their implementation. The visual method might have limitations, considering that many CSS properties are only "effective" when you start moving/interacting with elements, e.g. resizing the window/elements, or hovering over elements or using other cursor actions.
Re:Ply: A Visual Web Inspector (2018) [slides] by jchw on Sunday May 03, 2020 @02:26AM (#23057275)
Looks like good ol’ screen diffing. It may be possible to use heuristics to detect when a rule might be important for layout in other configurations but this is probably good enough for the stated purpose of highlighting what CSS is important for learning.