Changeset 117273 in webkit


Ignore:
Timestamp:
May 16, 2012 6:25:53 AM (12 years ago)
Author:
apavlov@chromium.org
Message:

Web Inspector: gradient properties are painful to inspect / author.
https://bugs.webkit.org/show_bug.cgi?id=86379

Reviewed by Pavel Feldman.

The CSS styles layout has been changed to allow property values to wrap onto subsequent lines
to let the users see the entire value text.

  • inspector/front-end/StylesSidebarPane.js:

(WebInspector.StylePropertyTreeElement.prototype.updateTitle.): Avoid line breaks between the color swatch and value.

  • inspector/front-end/elementsPanel.css:

(.styles-section .properties li.not-parsed-ok img.exclamation-mark):
(.styles-section .properties li):
(.styles-section .properties li .webkit-css-property):
(.styles-section.expanded .properties > li):
(.styles-section .properties > li .webkit-css-property):
(.styles-section .properties > li.child-editing):
(.styles-section .properties > li.child-editing .webkit-css-property):
(.styles-section .properties .enabled-button):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117272 r117273  
     12012-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
    1232012-05-16  Yury Semikhatsky  <yurys@chromium.org>
    224
  • trunk/Source/WebCore/inspector/front-end/StylesSidebarPane.js

    r116933 r117273  
    18931893                }
    18941894
    1895                 var container = document.createDocumentFragment();
     1895                var container = document.createElement("nobr");
    18961896                container.appendChild(swatchElement);
    18971897                container.appendChild(colorValueElement);
  • trunk/Source/WebCore/inspector/front-end/elementsPanel.css

    r108734 r117273  
    247247    content: url(Images/warningIcon.png);
    248248    opacity: 0.75;
     249    position: relative;
     250    float: left;
    249251    width: 12px;
    250252    height: 10px;
    251253    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;
    253256    vertical-align: baseline;
    254257    -webkit-user-select: none;
    255258    cursor: default;
     259    z-index: 1;
    256260}
    257261
     
    321325.styles-section .properties li {
    322326    margin-left: 12px;
    323     white-space: nowrap;
     327    padding-left: 22px;
     328    white-space: normal;
    324329    text-overflow: ellipsis;
    325330    overflow: hidden;
    326331    cursor: auto;
    327332}
     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
    328354.styles-section.matched-styles .properties li {
    329355    margin-left: 0 !important;
     
    404430    z-index: 1;
    405431    width: 18px;
    406     left: -2px;
     432    left: -40px; /* original -2px + (-38px) to compensate for the first line outdent */
    407433}
    408434
Note: See TracChangeset for help on using the changeset viewer.