#35365 [Opn->WFx]: phpinfo's css affects other parts of page

From: Date: Thu, 24 Nov 2005 12:17:16 +0000
Subject: #35365 [Opn->WFx]: phpinfo's css affects other parts of page
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88838@lists.php.net to get a copy of this message
ID: 35365 Updated by: derick@php.net Reported By: csaba at alum dot mit dot edu -Status: Open +Status: Wont fix Bug Type: PHP options/info functions PHP Version: 5CVS-2005-11-24 (snap) New Comment: This is a debug tool.... Previous Comments: ------------------------------------------------------------------------ [2005-11-24 13:09:31] csaba at alum dot mit dot edu Description: ------------ phpinfo's style sheet drastically affects other parts of the web page being generated, and there seems to be no compelling reason for it. For example, note the output of the following .php page: <html><head><title>phpinfo test page</title></head> <body bgcolor=yellow> <table border> <tr><td>Row1, Col1</td> <td>Row1, Col2</td></tr> <tr><td>Row2, Col1</td> <td>Row2, Col2 <img src='http://us.geo1.yimg.com/pic.geocities.com/img/filemgr/folder.gif' alt='img alt' title='img title'></td></tr> </table> </body> </html> In particular, on both IE 6 and FF, there are thick light borders, yellow background, serif fonts, and row 2, cell 2 has only one line Now add the following line: <?php phpinfo(); ?> While this prints out the php information, it drastically alters the appearance of the table at the top of the page. Specifically, the background color has gone from yellow to white, the table borders are now all thin, dark lines, the fonts are now all sans serif, and row 2, cell 2 now has 2 lines with the text on the top line and the image to the right on the line below. Expected result: ---------------- I expect the original page, by and large, to remain the same as before phpinfo was invoked. In particular, the bulk of the problems happen because many of phpinfo()'s style declarations are applied to element types instead of phpinfo() specific classes within an element type. For example, table { ... } affects all tables and not just phpinfo()'s tables. I would like to suggest making a phpinfo() specific class and using this for all elements generated with phpinfo() Thanks, Csaba Gabor from Vienna ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35365&edit=1

« previous php.bugs (#88838) next »