4 ms·
Still not good enough. For example the popover/tooltip that pops up on hover is fixed right below the target. If for example the viewport/window is smaller than
by everydaypanos 10y ago
Still not good enough. For example the popover/tooltip that pops up on hover is fixed right below the target. If for example the viewport/window is smaller than the available space it will "bleed" out of view. You still need javascript to place it properly, and javascript that manipulates :after and :before pseudo elements is not straightforward.. Just saying :)
- LoSboccacc 10y agoMore to the point :target can only target one element at most, since fragment is unique. the other stuff ranges from clever tricks, like the label/checkbox modal, to stuff which would be a nightmare to maintain on a complex page
- erlehmann_ 10y agoI have found that this makes it actually easier to reason about web page state: It is represented by the current URL.
- wanda 10y agoActually, you just need media queries.