Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support <br clear="foo"> #7311

Open
mdinger opened this issue Aug 21, 2015 · 8 comments
Open

Support <br clear="foo"> #7311

mdinger opened this issue Aug 21, 2015 · 8 comments

Comments

@mdinger
Copy link

@mdinger mdinger commented Aug 21, 2015

Testcase:

<html><head>
<style>
.test { float:left; }
</style>
</head>

<body>
<div><img class="test" src="https://www.google.com/images/srpr/logo11w.png" height="90" width="90"></div>
<br clear="left">
</div>

<div class="test"><img src="https://www.google.com/images/srpr/logo11w.png" height="90" width="90"></div>
</body></html>

causes:
misalign

[EDIT]
Problematic in http://www.dota2.com/hero/Earthshaker/ . These pages look pretty messy in general

@mdinger
Copy link
Author

@mdinger mdinger commented Aug 21, 2015

Updated OP with a linked testcase.

@pcwalton pcwalton changed the title testcase is misaligned in servo Support <br clear="foo"> Aug 21, 2015
@pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Aug 21, 2015

Thanks for the test! Updated the title with the problem.

@pcwalton
Copy link
Contributor

@pcwalton pcwalton commented Aug 21, 2015

Unfortunately I don't see a spec for this attribute.

@mdinger
Copy link
Author

@mdinger mdinger commented Aug 21, 2015

Would it be this?

EDIT: Oops, that's not the same. I'm really bad with html.

EDIT: Mozilla states it is deprecated. I think the original spec seems to be here though.

@jdm jdm added the A-layout/inline label Aug 23, 2015
@mdinger
Copy link
Author

@mdinger mdinger commented Aug 27, 2015

Oh, this is problematic for a website like http://www.dota2.com/hero/Earthshaker/ which renders pretty badly in general on servo.

@mdinger
Copy link
Author

@mdinger mdinger commented Jan 30, 2016

Still a problem with commit 3165781

@jdm
Copy link
Member

@jdm jdm commented Mar 16, 2017

resources/presentational-hints.css includes the br rules from https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3, so this is the layout code implementing clear behaviour not working correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.