diff options
author | EuAndreh <eu@euandre.org> | 2025-03-31 21:51:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-31 21:51:40 -0300 |
commit | 570ec471d1605318aeefb030cd78682ae442235b (patch) | |
tree | 51e17eabe37c6689f8799b55e6875c3480329a2c /src/content/pastebins/2021/08/11/h1-spacing.adoc | |
parent | Makefile, mkdeps.sh: Derive index.html and feed.xml from more static "sortdat... (diff) | |
download | euandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.gz euandre.org-570ec471d1605318aeefb030cd78682ae442235b.tar.xz |
src/content/: Update all files left to asciidoc
Diffstat (limited to 'src/content/pastebins/2021/08/11/h1-spacing.adoc')
-rw-r--r-- | src/content/pastebins/2021/08/11/h1-spacing.adoc | 62 |
1 files changed, 21 insertions, 41 deletions
diff --git a/src/content/pastebins/2021/08/11/h1-spacing.adoc b/src/content/pastebins/2021/08/11/h1-spacing.adoc index 9a00ece..e8a6986 100644 --- a/src/content/pastebins/2021/08/11/h1-spacing.adoc +++ b/src/content/pastebins/2021/08/11/h1-spacing.adoc @@ -1,29 +1,17 @@ ---- += Spaces around h1 tags -title: Spaces around h1 tags +// FIXME updated_at: 2021-08-15 -date: 2021-08-11 +_EDIT_: Apparently, the behaviour below is consistent between Firefox and +Chromium for links, but not for `<h1>`. My conclusion is that the `<h1>` +behaviour is a Firefox quirk, but the `<a>` is expected. -updated_at: 2021-08-15 - -layout: post - -lang: en - -ref: spaces-around-h1-tags - ---- - -*EDIT*: Apparently, the behaviour below is consistent between Firefox and -Chromium for links, but not for `<h1>`. -My conclusion is that the `<h1>` behaviour is a Firefox quirk, but the `<a>` is -expected. - ---- +''''' The HTML below has selectable extra spaces after `<h1>` tags: -```html +[source,html] +---- <!DOCTYPE html> <html lang="en"> <head> @@ -43,23 +31,22 @@ The HTML below has selectable extra spaces after `<h1>` tags: </main> </body> </html> -``` +---- The rendered output is: -<h1> - With spaces around when selecting this heading -</h1> -<h1>Without spaces around</h1> -<p> - Is this expected behaviour? -</p> +With spaces around when selecting this heading + +Without spaces around ---- +Is this expected behaviour? + +''''' The same with links: -```html +[source,html] +---- <!DOCTYPE html> <html lang="en"> <head> @@ -80,17 +67,10 @@ The same with links: </main> </body> </html> -``` +---- The rendered output is: -<p> - <a href="#"> - With extra underlined space - </a> - after the link. -</p> -<p> - <a href="#">Without extra underlined space</a> - after the link. -</p> +With extra underlined space after the link. + +Without extra underlined space after the link. |