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: 25
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

prosilver: <dfn> tags in forumlist_body.html

Post by Gingko »

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: 69223
Joined: Mon May 02, 2005 3:11 am
Contact:

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

Post by Lumpy Burgertushie »

try it and see what happens.


rob ert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Gingko
Registered User
Posts: 25
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

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

Post by Gingko »

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
Front-End Dev Team Lead
Front-End Dev Team Lead
Posts: 1065
Joined: Wed Dec 30, 2009 8:14 am
Name: Michael Miday
Contact:

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

Post by Hanakin »

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: 25
Joined: Mon Aug 18, 2003 2:16 pm
Location: IDF, France
Contact:

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

Post by Gingko »

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”