Skip to content

Position all elements relative by default#161

Closed
zkwentz wants to merge 1 commit intonecolas:masterfrom
zkwentz:master
Closed

Position all elements relative by default#161
zkwentz wants to merge 1 commit intonecolas:masterfrom
zkwentz:master

Conversation

@zkwentz
Copy link

@zkwentz zkwentz commented Jan 24, 2013

At first I didn't think this belonged in normalize.css until I read
point 4 of the normalize.css readme (Improves usability with subtle
improvements), I believe this commit achieves that, as more of than not
when we position an element absolutely we want to position it relative
to its container, and not to the page itself. It's more economical with
our time to position the container static if we should need to position
this element to the page rather than its parent.

At first I didn't think this belonged in normalize.css until I read
point 4 of the normalize.css readme (Improves usability with subtle
improvements), I believe this commit achieves that, as more of than not
when we position an element absolutely we want to position it relative
to its container, and not to the page itself. It's more economical with
our time to position the container static if we should need to position
this element to the page rather than its parent.
@kevva
Copy link

kevva commented Jan 24, 2013

Well, I think you misunderstood the point. The usability improvements are intended for the user, not for the developer. Also, this isn't normal browser behavior nor is it a subtle "improvement".

@necolas
Copy link
Owner

necolas commented Jan 24, 2013

This would have major, breaking implications for trying to develop a website with this code included by default. You don't want to blindly change the position value; it should only be done when it serves a specific purpose. And FYI, your commit modified every line in the file...not sure why, could be that you modified all the line endings.

@necolas necolas closed this Jan 24, 2013
@zkwentz
Copy link
Author

zkwentz commented Jan 24, 2013

What are the major, breaking implications of this addition? AFAIK position relative without a position specified is the same as static, is it not?

@necolas
Copy link
Owner

necolas commented Jan 24, 2013

Any absolutely positioned child element will be positioned relative to its nearest position-relative ancestor, so it's very different from static.

@zkwentz
Copy link
Author

zkwentz commented Jan 24, 2013

Right. I guess that was kind of the point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants