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

<meta name="layout" content="polymer or some other layout2"> #959

Closed
gertcuykens opened this issue Nov 23, 2014 · 3 comments
Closed

<meta name="layout" content="polymer or some other layout2"> #959

gertcuykens opened this issue Nov 23, 2014 · 3 comments

Comments

@gertcuykens
Copy link

https://www.polymer-project.org/docs/polymer/layout-attrs.html

Why not horizontal or vertical instead of layout horizontal layout vertical?

If layout just enables flex then vertical and horizontal can enable that too?

@ebidel
Copy link
Contributor

ebidel commented Nov 23, 2014

IIRC, one reason we require an extra attribute was because it's more
explicit that you're opting into the layout attributes. "horizontal" and
"vertical" by themselves are fairly generic and developers may already be
using them throughout the page. Adding "layout" reduces
#942.

Another reason is that in future we could have layout2 which uses the
NextAwesomeCSSThing. You'd want a way to mix and match the layout systems.

On Sun, Nov 23, 2014 at 2:15 PM, Gert Cuykens notifications@github.com
wrote:

https://www.polymer-project.org/docs/polymer/layout-attrs.html

Why not horizontal or vertical instead of layout horizontal layout
vertical?

If layout just enables flex then vertical and horizontal can enable that
too?


Reply to this email directly or view it on GitHub
#959.

@gertcuykens
Copy link
Author

<meta name="layout" content="polymer or some other layout2"> :P solved, still think a attribute should not be used as a namespace :)

@gertcuykens gertcuykens changed the title Just use horizontal or vertical instead of adding a extra layout attribute for flex? <meta name="layout" content="polymer or some other layout2"> Nov 24, 2014
@gertcuykens
Copy link
Author

I have been reading more about things like http://www.w3.org/TR/microdata/ and the itemscope specifaction follow the same logic behind a layout attribute. I am all in favor of one standard way of doing things. So disregard this issue.

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

No branches or pull requests

2 participants