help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there some HTML tags that I can use to make certain blocks auto-


From: Noam Postavsky
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

>> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]