Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.3.0 Feature Freeze
-
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
- relates to
-
QTBUG-86977 Qml Text underline changes on resize with fractional display scale factors
-
- Closed
-
-
QTBUG-96465 Text's underline thickness is unstable on fractional screen's scale factors
-
- Closed
-
-
QTBUG-108831 Some Rectangle borders are double the width with fractional scale ratios
-
- Closed
-
-
QTBUG-111814 Dpi Scaling affect line width.
-
- Closed
-
- resulted from
-
QTBUG-74342 QML RichText hr element doesn't work
-
- Closed
-