Bug 231376

Summary: css vertical-align doesn't work with xhtml1.1 dtd
Product: [Applications] konqueror Reporter: Matthew Millar <mattmill30>
Component: khtmlAssignee: Konqueror Bugs <konqueror-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.4.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Matthew Millar 2010-03-20 02:42:35 UTC
Version:           4.4.1 (using KDE 4.4.1)
OS:                Linux
Installed from:    Ubuntu Packages

Hi,

I've noticed that if a page is programmed with the xhtml11 dtd, the vertical-align css attribute doesn't work on inline elements other than text.


I was following the tutorial below, under the section "Using line-height (and vertical-align)":

http://www.student.oulu.fi/~laurirai/www/css/middle/


If I revert back to the xhtml1.0 strict dtd, the tutorial works fine, its only with the xhtml11 dtd that the bug occurs.

The bug doesn't appear to effect text, but may effect more than just images (untested):


XHTML1.1 DTD:

Text: - Works with xhtml1.1 dtd
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<style type="text/css">
		div {line-height: 20em; background-color: black;}
		p {vertical-align:middle; color: #FFF}
		</style>
	</head>
	<body>
		<div>
		<p>Here is text</p>
		</div>
	</body>
</html>

Image: - Doesn't work with xhtml1.1 dtd
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<style type="text/css">
		div {line-height: 20em; background-color: black;}
		img {vertical-align:middle;}
		</style>
	</head>
	<body>
		<div>
		<img src="/image.png" />
		</div>
	</body>
</html>


XHTML1.0 Strict DTD:

Text: - Works with xhtml1.0 strict dtd
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<style type="text/css">
		div {line-height: 20em; background-color: black;}
		p {vertical-align:middle; color: #FFF}
		</style>
	</head>
	<body>
		<div>
		<p>Here is text</p>
		</div>
	</body>
</html>

Image: - Works with xhtml1.0 strict dtd:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
	<head>
		<style type="text/css">
		div {line-height: 20em; background-color: black;}
		img {vertical-align:middle;}
		</style>
	</head>
	<body>
		<div>
		<img src="/image.png" />
		</div>
	</body>
</html>

Please email me if you have any questions, I'm not the best at explaining myself.

Thanks,

Matthew Millar
Comment 1 Maksim Orlovich 2010-03-20 18:48:18 UTC
Seems like the xhtml1.1 dtd turns on almost-standards (rather than strict) for some reason.
Comment 2 Andrew Crouthamel 2018-11-06 15:07:16 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-17 04:55:43 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-14 03:09:01 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-29 05:23:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-01-13 05:14:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!