- Reads the value for the letter-spacing CSS property and shows it in the Font Editor. When it is default, show the "normal" identifier. As soon as the user tries to edit it using the value slider, switch to an em-based value.
- Tweaks the unit conversion method to support letter-spacing: using correct reference node for em units, returning high-precision results even for pixels (allow sub-pixel precision)
Differential Revision: https://phabricator.services.mozilla.com/D25087
--HG--
extra : moz-landing-system : lando
- Reads the value for the letter-spacing CSS property and shows it in the Font Editor. When it is default, show the "normal" identifier. As soon as the user tries to edit it using the value slider, switch to an em-based value.
- Tweaks the unit conversion method to support letter-spacing: using correct reference node for em units, returning high-precision results even for pixels (allow sub-pixel precision)
Differential Revision: https://phabricator.services.mozilla.com/D25087
--HG--
extra : moz-landing-system : lando
Adds a new `disabled` property to the Font Editor Redux store applicable to all input fields.
When inspecting a pseudo-element, this `disabled` property is set to true.
This allows the pseudo-element to be inspected, but prevents editing font property values because it's currently not possible to write them back to CSS rules other than element inline styles.
Differential Revision: https://phabricator.services.mozilla.com/D18364
--HG--
extra : moz-landing-system : lando
This patch removes the `devtools.inspector.fonteditor.enabled` pref and all its uses in the Fonts panel.
Obsolete actions for the case when the pref was off are also removed. This is mostly old Font Inspector code.
One test is temporarily disabled because it tests the old Font Inspector. It will be removed along with other
pieces on the next part of this commit series.
Differential Revision: https://phabricator.services.mozilla.com/D11505
--HG--
extra : moz-landing-system : lando
Localization means words in other languages that shouldn't be capitalized will be if using CSS text-transform.
Differential Revision: https://phabricator.services.mozilla.com/D7190
--HG--
extra : moz-landing-system : lando
This changes the structure of the used fonts list. It groups fonts by family name and removes URL and copy capabilities.
Depends on D3805
Differential Revision: https://phabricator.services.mozilla.com/D3894
--HG--
extra : moz-landing-system : lando
Removes logic pertaining to filtering by members of CSS font-family declaration.
Differential Revision: https://phabricator.services.mozilla.com/D3805
--HG--
extra : moz-landing-system : lando
This patch replaces the Other Fonts and Rendered Fonts accordions with a single All Fonts accordion while the Font Editor pref is on.
When thhe pref for the Font Editor is off, the Element Fonts and Other Fonts accordions are kept until we deprecate the old Font Inspector code.
Differential Revision: https://phabricator.services.mozilla.com/D3797
--HG--
extra : moz-landing-system : lando
- Extract font name and origin (URL + copy URL) into FontMeta component.
- Reuse FontMeta in font overview and font editor.
- Tweak CSS for improved spacing and flex-grow behaviour.
MozReview-Commit-ID: 4W2E48r8Yps
--HG--
extra : rebase_source : 5159468f943cb505fd1ca9aeb50954fbb690af07
In the fonts panel UI prior to Firefox 60, remote font URLs used to be
displayed in full in a text input field. It made it easy to copy them.
With the redesign that happened in 60 (bug 1437548 and 1442001), getting
the URL became harder. The URL isn't visible anymore easily. There's a link
that can be clicked to load the URL in the browser, or it can also be copied
from the @font-face CSS rule code section. But that's harder.
This change adds the beginning of the URL back (with an ellipsis) and a
simple button that copies the link.
Note that the new test failed intermittently on non e10s (took too long).
This was because of a react middleware which was logging all actions, which,
in non-e10s, ended up logging StyleRuleActors, which got serialized and caused
way too much logs to be printed, slowing the test down. So the test was
disabled on non-e10s.
MozReview-Commit-ID: 2oSMoWKYhTk
--HG--
extra : rebase_source : ac406d91c78e5222854b53f245ad2d93428bfc4d
In the fonts panel UI prior to Firefox 60, remote font URLs used to be
displayed in full in a text input field. It made it easy to copy them.
With the redesign that happened in 60 (bug 1437548 and 1442001), getting
the URL became harder. The URL isn't visible anymore easily. There's a link
that can be clicked to load the URL in the browser, or it can also be copied
from the @font-face CSS rule code section. But that's harder.
This change adds the beginning of the URL back (with an ellipsis) and a
simple button that copies the link.
MozReview-Commit-ID: 2oSMoWKYhTk
--HG--
extra : rebase_source : 1af901f4a343f392b65309fde34411313606b824
In the fonts panel UI prior to Firefox 60, remote font URLs used to be
displayed in full in a text input field. It made it easy to copy them.
With the redesign that happened in 60 (bug 1437548 and 1442001), getting
the URL became harder. The URL isn't visible anymore easily. There's a link
that can be clicked to load the URL in the browser, or it can also be copied
from the @font-face CSS rule code section. But that's harder.
This change adds a simple right-click context menu to the link that has
one item only: copy link.
MozReview-Commit-ID: 2oSMoWKYhTk
--HG--
extra : rebase_source : da21c405fd6d2d395de66c0de23a2739c71931bc
In the fonts panel UI prior to Firefox 60, remote font URLs used to be
displayed in full in a text input field. It made it easy to copy them.
With the redesign that happened in 60 (bug 1437548 and 1442001), getting
the URL became harder. The URL isn't visible anymore easily. There's a link
that can be clicked to load the URL in the browser, or it can also be copied
from the @font-face CSS rule code section. But that's harder.
This change adds a simple right-click context menu to the link that has
one item only: copy link.
MozReview-Commit-ID: 2oSMoWKYhTk
--HG--
extra : rebase_source : 0fa26ea6846924a270f14c1e0258dbf21e122e6f
New accordion section in the fonts panel, that lists all fonts used elsewhere
than the currently selected node.
Collapsed by default.
MozReview-Commit-ID: IvgKbt9fH9w
--HG--
extra : rebase_source : 6c5c998b2de5f8e26be1ff3f72ed192fd6f72dd2