Wolle
KPCKevin Powell - Community
•Created by Wolle on 5/7/2024 in #front-end
container size and position fixed
I realized
container: size;
counts as parent similar as position: relative
to position: absolute
to position: fixed
.
There is no mention of this on MDN, does anyone have any information about this? Is this a bug, or is it in the spec?4 replies
KPCKevin Powell - Community
•Created by Wolle on 7/10/2023 in #front-end
Is `height: 0; width: 0; overflow: hidden;` enough to visibly hide a span?
I got a
<span aria-life="assertive">
which should not be visible, but read by screen readers if it changes (sorting of a table). So I checked how frameworks do their sr-only class and I thought height: 0; width: 0; overflow: hidden;
should be enough.
1) Am I overlooking some edge cases?
2) Why is it 1x1px small, with margin of -1px, which would make it effectively -1x-1px small?
3) Is the rest because they use it for different elements, that could bring margin, padding, border, etc.?2 replies
KPCKevin Powell - Community
•Created by Wolle on 2/16/2023 in #front-end
declaring and calling a function in one line strangeness
10 replies