prosilver: <dfn> tags in forumlist_body.html

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
User avatar
Gingko
Registered User
Posts: 22
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

prosilver: <dfn> tags in forumlist_body.html

Post by Gingko » Mon Aug 13, 2018 9:28 am

Hello.

I am trying to make a theme that inherits from prosilver, but there is something that I don't understand in this style.

In the forumlist_body.html template file, there are three <dfn> elements (inside the Topics, Posts and Last post <dd> cells) whose contents replicate the title of the columns.

These elements are styled that way (from contents.css, line 78) :

Code: Select all

ul.topiclist dfn {
    position: absolute;
    left: -999px;
    width: 990px;
}
… thus absolutely positioned relatively to the grand-parent <dl> element.
This styling actually seems to put them outside of the view port, which is not very different from applying a display:none to them.

But this pose a big problem to me, because I need to add a position: relative to the parent (intermediary) <dd> element, and this completely breaks this absolute positioning, making the <dfn> contents visible at an unexpected place.

Of course I need to imagine some styling changes to set to these <dfn> elements, but the problem is that I absolutely don't understand the actual purpose of them, nor why they have been put there, nor why they actually even exist.

When are these <dfn> contents actually and ever displayed?
What are they made for?
Is there some javascript code or responsive style applied to them sometimes?
What will happen if I remove them or if I apply a display:none style to them instead? What will stop working if I do that?
Gingko

User avatar
Lumpy Burgertushie
Registered User
Posts: 64876
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: prosilver: <dfn> tags in forumlist_body.html

Post by Lumpy Burgertushie » Mon Aug 13, 2018 1:56 pm

try it and see what happens.


rob ert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Gingko
Registered User
Posts: 22
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

Re: prosilver: <dfn> tags in forumlist_body.html

Post by Gingko » Mon Aug 13, 2018 2:36 pm

Lumpy Burgertushie wrote:
Mon Aug 13, 2018 1:56 pm
try it and see what happens.
I already tried, it works as expected for what I want to do, but this doesn't help me.

As I don't know which feature it was implementing, I don't know which feature may have stopped working afterward.
Gingko

User avatar
Hanakin
Infrastructure Team Member
Infrastructure Team Member
Posts: 711
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

Re: prosilver: <dfn> tags in forumlist_body.html

Post by Hanakin » Mon Aug 13, 2018 7:59 pm

The dfn elements are left over archaic code for handling screen readers change them to spans and give them the class of sr-only instead and that should fix everything for you

User avatar
Gingko
Registered User
Posts: 22
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

Re: prosilver: <dfn> tags in forumlist_body.html

Post by Gingko » Tue Aug 14, 2018 2:27 pm

Ok, thank you very much.
Maybe I try to install a screen reader, one of these days, in order to check this feature. ;)
Gingko

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 15 guests