Skip to content

Google logo floats left in non-US Google #7301

Closed

Description

@tgkokk

For example, Google UK:

screen shot 2015-08-21 at 01 07 04

Activity

  1. added
    I-wrong
    on Aug 21, 2015
  2. initsecret commented on Aug 27, 2015

    @initsecret

    I wanna work on it, could you guide me @jdm

  3. mskrzypkows commented on Sep 21, 2015

    @mskrzypkows

    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:

    <html>
    <body> 
        <center>            
            Test  <br><br>    
            <div style="background-color: #b0c4de; background-size:272px 92px;height:92px;width:272px"></div>
            <br><br>
            <div style="background-color: #b0c4de; background-size:272px 92px;height:92px;width:272px" align="left"></div>
        </center>
    </html>
    </body>
    
  4. mskrzypkows commented on Sep 22, 2015

    @mskrzypkows

    Here: http://mxr.mozilla.org/servo/source/components/layout/block.rs#2473 we have a check for <center> tag, if <div> has align="left" than input.text_align is not text_align::T::servo_center so there should be check for parent align or in other part, where input.text_align is set, there should be check for parent tag.
    What do you think? Is it right direction?

  5. jdm commented on Sep 22, 2015

    @jdm
    Member

    That makes sense to me, but I will defer layout questions to people like @mbrubeck.

  6. jdm commented on Sep 22, 2015

    @jdm
    Member

    Perhaps we need a flag on nodes that are children of a <center> element, rather than a special text-align value.

  7. pcwalton commented on Oct 2, 2015

    @pcwalton
    Contributor

    @jdm Other browsers do use a special text-align value here though (-webkit-center and -moz-center).

  8. added a commit that references this issue on Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-layout/inlineI-wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions