Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@
}
}
* { box-sizing: border-box; }
/*
* The `hidden` attribute only hides an element via a UA-stylesheet `display: none`, which any
* author rule setting `display` silently beats. `.btn` sets `display: inline-flex`, so a
* hidden button stayed on the page as an empty 55x31 box for every non-Linux visitor.
*
* Declared once, globally, rather than as `.btn[hidden]`: the next element given `hidden` will
* have the same problem the moment it also has a `display`, and that is not a bug worth
* discovering twice.
*/
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
margin: 0;
Expand Down
Loading