Merge "[styles] Make Trident workaround value a variable"

This commit is contained in:
jenkins-bot 2020-09-22 15:06:25 +00:00 committed by Gerrit Code Review
commit 57e069ba81
2 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ pre,
font-size: @font-size-base;
// Support IE 9-11, Trident cuts values 2 digits after decimal point.
// `calc` enables to set correct calculation in place again. See T102364.
font-size: calc( 1em ~'*' unit( @font-size-base ) );
font-size: @font-size-base--trident-hack;
line-height: @line-height-base;
h1 {

View File

@ -40,6 +40,7 @@
@font-family-sans--fallback: sans-serif;
@font-size-base: unit( 14 / @font-size-browser, em ); // Equals `0.875em`.
@font-size-base--trident-hack: calc( 1em ~'*' unit( @font-size-base ) );
@font-size-reset: @font-size-root;
@font-size-heading-1: 1.8em;
@font-size-heading-2: 1.5em;