Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: Source/WebCore/css/html.css

Issue 13792002: Fix <dialog> centering (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * The default style sheet used to render HTML. 2 * The default style sheet used to render HTML.
3 * 3 *
4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 4 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 border-width: 1px 140 border-width: 1px
141 } 141 }
142 142
143 map { 143 map {
144 display: inline 144 display: inline
145 } 145 }
146 146
147 #if defined(ENABLE_DIALOG_ELEMENT) && ENABLE_DIALOG_ELEMENT 147 #if defined(ENABLE_DIALOG_ELEMENT) && ENABLE_DIALOG_ELEMENT
148 dialog:not([open]) { display: none; } 148 dialog:not([open]) { display: none; }
149 dialog { 149 dialog {
150 display: block;
falken 2013/04/08 13:07:35 A hack for now. If it's inline it generates an ano
150 position: absolute; 151 position: absolute;
151 left: 0; right: 0; 152 left: 0; right: 0;
152 margin: auto; 153 margin: auto;
153 border: solid; 154 border: solid;
154 padding: 1em; 155 padding: 1em;
155 background: white; 156 background: white;
156 color: black; 157 color: black;
157 } 158 }
158 #endif 159 #endif
159 160
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1308 @page { 1309 @page {
1309 /* FIXME: Define the right default values for page properties. */ 1310 /* FIXME: Define the right default values for page properties. */
1310 size: auto; 1311 size: auto;
1311 margin: auto; 1312 margin: auto;
1312 padding: 0px; 1313 padding: 0px;
1313 border-width: 0px; 1314 border-width: 0px;
1314 } 1315 }
1315 1316
1316 /* noscript is handled internally, as it depends on settings. */ 1317 /* noscript is handled internally, as it depends on settings. */
1317 1318
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698