Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97494

support CSS border and height on <hr>

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.3.0 Feature Freeze
    • GUI: Text handling
    • None

    Description

      It came up during discussion on https://codereview.qt-project.org/c/qt/qtbase/+/376366 that <hr style="background-color:green;"/> isn't sufficient on its own to make a green horizontal rule, because a browser will render a beveled rule by default, which covers up the green color. So I did a workaround: added to the head style border-width: 0; to make it omit the border.

      It would also be nice to actually support the CSS height, because

      • our default of 1 pixel is narrower than a browser's default
      • again I had to add height: 1px to the head style to make the browser render exported HTML the same way we render it
      • single-pixel lines can look terrible in the Qt Quick scene graph, especially during scrolling and especially on fractionally-scaled high-dpi displays (it keeps winking back and forth from single-pixel to 2-pixel height, depending on position; no doubt somebody will complain about that soon)

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes