all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Are there some HTML tags that I can use to make certain blocks auto-hide in eww?
Date: Thu, 27 Sep 2018 10:25:34 -0400	[thread overview]
Message-ID: <CAM-tV-_wGVnV1_-KZ_EaCcW+B48BLRbYXOA1f8=Ovm7Bm9XNNQ@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY1CGmqbuH67OJW+oudRT2VEHj-Sq2F0W=SXGOGpKHZ1Nw@mail.gmail.com>

>> Eww (or more specifically, shr) supports inline styles, using
>> style="display:none" on a tag does hide it in Eww.
>
> Wouldn't that permanently hide the tag? Not a web expert, but can inline styles be overridden by external CSS?

Not a web expert either, but yes, I think it's permanent. I don't
think Eww supports dynamic modification of the display.

>> recent Emacs from master, aria-hidden="true" also works (generally,
>> this is meant to hide it from screen-readers, see Bug#32348).
>
> I looked at this one, but hiding the aria-hidden is disabled by default.
>
> C-h v shr-discard-aria-hidden shows that it is nil by default.

Right, I forgot to mention that.

> I was looking for a way to have my site "just work as I expect" without having users need to set shr-discard-aria-hidden to t.

Possibly setting shr-discard-aria-hidden to t by default would make
sense, I just don't feel familiar enough with its usage in practice to
make that call.



  reply	other threads:[~2018-09-27 14:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-27 13:18 Are there some HTML tags that I can use to make certain blocks auto-hide in eww? Kaushal Modi
2018-09-27 13:50 ` Noam Postavsky
2018-09-27 13:55   ` Kaushal Modi
2018-09-27 14:25     ` Noam Postavsky [this message]
2018-09-27 15:25       ` Kaushal Modi
2018-09-27 15:42         ` T.V Raman
2018-09-27 15:45           ` Kaushal Modi
2018-09-27 15:48             ` T.V Raman
2018-09-27 15:50               ` Kaushal Modi
2018-09-27 15:54                 ` T.V Raman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM-tV-_wGVnV1_-KZ_EaCcW+B48BLRbYXOA1f8=Ovm7Bm9XNNQ@mail.gmail.com' \
    --to=npostavs@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.