Body Margin 8px
miriamsuzanne.com
miriamsuzanne.com
The genius is you get a reasonable reading experience out of the box with default styles.
Noone wants their first character kissing the browser window frame.
I am betting what is old is new and 8px borders will come back in fashion.
if you have h1 with top margin 10px, and body margin 8px, it "adds" up to 10px, not 18px.
Once you write article-based sites, without a random navbar that people don't want, then it can become quite nice
@Google, @Youtube. Please FIX your video-player controls. Add a MARGIN to the on-screen display:
You know the "little" go-fullscreen-button on the bottom-right of the video that sits 0.0000000001mm above the 'interactive' timeline.
How many times I've pressed the 'timeline' instead of the fullscreen-button and then 'ended' the video and had to actually go into my youtube-history to reload video.
If you going to judge my websites with CLS,LCP and all that you can do better with UI as well.
Timeline may receive a focus (blue outline) so that when you later press up/down to adjust volume, it instead jumps 5 seconds away.
You cannot click on 0:00, because it’s inaccessible for some reason. But you can do that by accidentally pressing numpad 0 instead of or together with a right arrow.
If you are seeking a frame by thumbnail and move away the slightest, thumbnails disappear. Or they never load, but youtube shows you any previous frame instead of a black box, even if it is 50 minutes away.
If you miss your cursor on a tiny volume bar, it scrolls to description. Arguable but annoying.
They can’t figure out how to hide a cursor after a while, so you have to move it to the right and ignore 1x10 bar on your screen.
And instead of showing a map of options in the settings button, it presents a stupid hierarchical menu, so you have to pause video every time to figure out what you need to click on.
I could go on with entire ui, but chances that this will be fixed is zero, because some manager once “proved” something about it all likely.
It is actually fixed at this point, but for a very long time there was a 'collision' (respective parallel processing) of the page-wide space-bar handler that toggles playback and the actual "click" event handler of the play/pause button that can be triggered with the space key as well. As a result, if you started play by clicking the play button under seeker (focussing it in effect) and later decided to pause the video by pressing the space-bar, it briefly paused the video (play->pause from the button click handler) and immediately triggered pause->play from the global handler (or other way round). So to actually pause the video with keyboard you had to shift-tab away from the invisibly-focussed (!) play button to the seeker and only then used the space key to trigger the global handler alone.
It always left me flabbergasted how such blatant UX flaw could remain unattended in such prominent service for that long.
This "feature" always trips me up. For those unaware, pressing 0 through 9 will jump the playhead to 0% through 90% of the timeline, respectively. I can understand wanting to immediately jump to the beginning of a video, but who is ever going to know that they want to jump to exactly the 40% of the timeline of a video? In some videos that might be 30 seconds in; in others, 30 minutes. Having 1 jump you to the 1:00 mark, 2 to 2:00, etc would make far more sense as the vast majority of videos are 9 minutes or shorter anyway - but either way, it won't stop me from accidentally jumping to some random point in the video by either me or my cat accidentally tapping a number key, and then me trying to figure out where in the hell I was at in the timeline before it happened so I can keep playing the vid from where I left off. The whole thing's an anti-feature.
Really fun read :)
It’s in the HTML spec now, https://html.spec.whatwg.org/multipage/rendering.html, broken up into smaller pieces, and with more prose around it.
There’s a lot more of it than the old one, partly due to newer stuff, partly due to CSS being able to express things that it couldn’t in the past, and partly due to covering stuff that was just missing back when it was part of the CSS spec (e.g. nobr clearly and obviously implies white-space: nowrap, but that was missing from the old user-agent stylesheet).
Some parts end up prose descriptions instead of simple rules, too, as is seen in the titular body margin, which is described in <https://html.spec.whatwg.org/multipage/rendering.html#the-pa...> as coming from several attributes, with 8px being a fallback.
What? Pre and H1 do not have an initial margin of 0 and plenty of elements do not have an initial display of inline
Confused.
(Think of the default values of a base object or base class, which are then overwritten by the constructor or more specific methods.)
> This is why we need browser styles, which provide different defaults from one element to the next. Some elements should be display: block (divs, paragraphs, lists, headings, etc), and some of those elements should have margins on them to improve readability.
If you apply the rule
h1 {
display: initial;
margin: initial;
}
you’ll get an inline h1 with no margin.The genius is you get a reasonable reading experience out of the box with default styles.
Noone wants their first character kissing the browser window frame.