You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found the root cause of floating left. Google uses <center> tag, inside there is <div> with align="left" attribute which causes logo to float left. Here is example html which shows the difference:
Activity
initsecret commentedon Aug 27, 2015
I wanna work on it, could you guide me @jdm
mskrzypkows commentedon Sep 21, 2015
I've found the root cause of floating left. Google uses
<center>tag, inside there is<div>withalign="left"attribute which causes logo to float left. Here is example html which shows the difference:jdm commentedon Sep 21, 2015
That's triggered by this CSS rule: http://mxr.mozilla.org/servo/source/resources/presentational-hints.css#14
jdm commentedon Sep 21, 2015
Then again, it may also be interacting with http://mxr.mozilla.org/servo/source/resources/servo.css#27 ?
mskrzypkows commentedon Sep 22, 2015
Here: http://mxr.mozilla.org/servo/source/components/layout/block.rs#2473 we have a check for
<center>tag, if<div>hasalign="left"thaninput.text_alignis nottext_align::T::servo_centerso there should be check for parent align or in other part, whereinput.text_alignis set, there should be check for parent tag.What do you think? Is it right direction?
jdm commentedon Sep 22, 2015
That makes sense to me, but I will defer layout questions to people like @mbrubeck.
jdm commentedon Sep 22, 2015
Perhaps we need a flag on nodes that are children of a
<center>element, rather than a special text-align value.Fully implement the "align descendants" rule for div.
pcwalton commentedon Oct 2, 2015
@jdm Other browsers do use a special text-align value here though (-webkit-center and -moz-center).
Fully implement the "align descendants" rule for div.
Make "align descendants" rule use parent's text-align.
Auto merge of #7825 - eefriedman:div-align, r=mbrubeck