Add default font size selection in responsive design view

NEW
Unassigned

Status

--
enhancement
5 years ago
2 months ago

People

(Reporter: clochix, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
More and more web developers seems to use `em` and `rem` units in their CSS. This make the web pages more dependents from the default font size of the browser.

If we add to the Responsive design view a selector to test with different default font size, I think it would help developers not to assume that everybody use the same default font size as them. Of course, the user’s default should be restored when switching to another tab or leaving the responsive design view.

Bonus point: also allow to switch "Allow pages to choose their own font", to test the rendering if the loading of our custom fonts fails or if fonts we choose are not available.

See https://groups.google.com/forum/#!topic/mozilla.dev.developer-tools/npKCYq8Qf9U for the discussion.

Updated

5 years ago
Blocks: 778169

Comment 1

5 years ago
I don't know about the UI, but internally, this is what I think we should use: http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIMarkupDocumentViewer.idl#35

Updated

4 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.