Last modified: 2011-03-13 18:06:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28519, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26519 - place styles _inside_ HTML tags
place styles _inside_ HTML tags
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.18.x
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://abj.jidanni.org/index.php?titl...
: accessibility
Depends on:
Blocks: 367 26442
  Show dependency treegraph
 
Reported: 2010-12-31 02:47 UTC by Dan Jacobson
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Jacobson 2010-12-31 02:47:39 UTC
Looking at the implementation of mw-specialpagerestricted:
><li class="mw-specialpages-page mw-specialpagerestricted"><strong><a href="/index.php?title=..." title="特殊:未被監視的頁面">Unwatched pages</a></strong></li>

One wonders 'why have they placed the style ouside the HTML tag
instead of inside?'

As can be seen from this little experiment (done on Firefox)
><span style="font-weight:normal"><strong>style outside</strong></span>
><strong><span style="font-weight:normal">style inside</span></strong>
your doing that leaves the WikiSysop with no way to override it, if he
so pleases, via MediaWiki:Common.css .

At the bottom of the page one finds
><strong class="mw-specialpagerestricted">Restricted special pages.</strong>
which is also fine, as one can override the <strong> with stylesheets,
accoding to my experiments.

So barring any other considerations that I am not aware of, please fix
it, and along with it, and other such places in the code where the
styles are on the outside.
Comment 1 Dan Jacobson 2010-12-31 02:51:48 UTC
Note of course that one must be a WikiSysop on the machine of the above URL. So please adjust the URL to one where you are a WikiSysop, in order to see what I am talking about.
Comment 2 Brandon Harris 2010-12-31 03:16:39 UTC
I'm not sure this is a bug.  

It appears that maybe you don't understand how style sheets work?

span strong { color: red; } 
strong span { color: blue; }

Or in your first instance:

li.mw-specialpagerestricted strong a { color: red; }

I don't see a bug here.
Comment 3 Dan Jacobson 2010-12-31 03:24:34 UTC
(In reply to comment #2)
So there always is a way to overpower <strong> via
MediaWiki:Common.css ! Now can you please tell that to the fellow in
Bug 26415 Comment 12 about <i> too? Thank you!
Comment 4 Dan Jacobson 2010-12-31 03:37:54 UTC
Note I do not wish to affect all the <strong> on the whole website...
Comment 5 Brandon Harris 2010-12-31 04:11:38 UTC
I really don't think I can comment any further.  I think you should learn how to use CSS.

I am closing this WONTFIX; it's not a bug.
Comment 6 Dan Jacobson 2010-12-31 04:59:03 UTC
Thank you. I can confirm that using
.mw-specialpagerestricted strong { font-weight:normal; }
.mw-specialpagerestricted { font-weight:normal; }
overpowers every instance of that <strong> there. Now I will take it to Bug 26415 as proof that one can always overpower any such HTML tags.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links