Changeset 117273 in webkit
- Timestamp:
- May 16, 2012 6:25:53 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r117272 r117273 1 2012-05-16 Alexander Pavlov <apavlov@chromium.org> 2 3 Web Inspector: gradient properties are painful to inspect / author. 4 https://bugs.webkit.org/show_bug.cgi?id=86379 5 6 Reviewed by Pavel Feldman. 7 8 The CSS styles layout has been changed to allow property values to wrap onto subsequent lines 9 to let the users see the entire value text. 10 11 * inspector/front-end/StylesSidebarPane.js: 12 (WebInspector.StylePropertyTreeElement.prototype.updateTitle.): Avoid line breaks between the color swatch and value. 13 * inspector/front-end/elementsPanel.css: 14 (.styles-section .properties li.not-parsed-ok img.exclamation-mark): 15 (.styles-section .properties li): 16 (.styles-section .properties li .webkit-css-property): 17 (.styles-section.expanded .properties > li): 18 (.styles-section .properties > li .webkit-css-property): 19 (.styles-section .properties > li.child-editing): 20 (.styles-section .properties > li.child-editing .webkit-css-property): 21 (.styles-section .properties .enabled-button): 22 1 23 2012-05-16 Yury Semikhatsky <yurys@chromium.org> 2 24 -
trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js
r116933 r117273 1893 1893 } 1894 1894 1895 var container = document.create DocumentFragment();1895 var container = document.createElement("nobr"); 1896 1896 container.appendChild(swatchElement); 1897 1897 container.appendChild(colorValueElement); -
trunk/Source/WebCore/inspector/front-end/elementsPanel.css
r108734 r117273 247 247 content: url(Images/warningIcon.png); 248 248 opacity: 0.75; 249 position: relative; 250 float: left; 249 251 width: 12px; 250 252 height: 10px; 251 253 margin: 0 6px 0 0; 252 padding: 0 1px; 254 left: -38px; /* outdent to compensate for the top-level property indent */ 255 padding-left: 2px; 253 256 vertical-align: baseline; 254 257 -webkit-user-select: none; 255 258 cursor: default; 259 z-index: 1; 256 260 } 257 261 … … 321 325 .styles-section .properties li { 322 326 margin-left: 12px; 323 white-space: nowrap; 327 padding-left: 22px; 328 white-space: normal; 324 329 text-overflow: ellipsis; 325 330 overflow: hidden; 326 331 cursor: auto; 327 332 } 333 334 .styles-section .properties li .webkit-css-property { 335 margin-left: -22px; /* outdent the first line of longhand properties (in an expanded shorthand) to compensate for the "padding-left" shift in .styles-section .properties li */ 336 } 337 338 .styles-section.expanded .properties > li { 339 padding-left: 38px; 340 } 341 342 .styles-section .properties > li .webkit-css-property { 343 margin-left: -38px; /* outdent the first line of the top-level properties to compensate for the "padding-left" shift in .styles-section .properties > li */ 344 } 345 346 .styles-section .properties > li.child-editing { 347 padding-left: 8px; 348 } 349 350 .styles-section .properties > li.child-editing .webkit-css-property { 351 margin-left: -8px; 352 } 353 328 354 .styles-section.matched-styles .properties li { 329 355 margin-left: 0 !important; … … 404 430 z-index: 1; 405 431 width: 18px; 406 left: - 2px;432 left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */ 407 433 } 408 434
Note: See TracChangeset
for help on using the changeset viewer.