mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Issue #1673 - Part 1: Allow tab-size to accept <length>.
Currently -moz-tab-size only accepts <number> values, and both Chrome and Firefox currently support <length> values and have for some time now. So with this you would be able to support sizes in px or em, for instance. This was implemented in Firefox 53 and was trivial to backport.
This commit is contained in:
parent
b28dba9f03
commit
633d50eb3f
7 changed files with 124 additions and 62 deletions
|
|
@ -3806,10 +3806,10 @@ nsStyleText::nsStyleText(StyleStructContext aContext)
|
|||
, mControlCharacterVisibility(nsCSSParser::ControlCharVisibilityDefault())
|
||||
, mTextEmphasisStyle(NS_STYLE_TEXT_EMPHASIS_STYLE_NONE)
|
||||
, mTextRendering(NS_STYLE_TEXT_RENDERING_AUTO)
|
||||
, mTabSize(NS_STYLE_TABSIZE_INITIAL)
|
||||
, mTextEmphasisColor(StyleComplexColor::CurrentColor())
|
||||
, mWebkitTextFillColor(StyleComplexColor::CurrentColor())
|
||||
, mWebkitTextStrokeColor(StyleComplexColor::CurrentColor())
|
||||
, mTabSize(float(NS_STYLE_TABSIZE_INITIAL), eStyleUnit_Factor)
|
||||
, mWordSpacing(0, nsStyleCoord::CoordConstructor)
|
||||
, mLetterSpacing(eStyleUnit_Normal)
|
||||
, mLineHeight(eStyleUnit_Normal)
|
||||
|
|
@ -3844,10 +3844,10 @@ nsStyleText::nsStyleText(const nsStyleText& aSource)
|
|||
, mTextEmphasisPosition(aSource.mTextEmphasisPosition)
|
||||
, mTextEmphasisStyle(aSource.mTextEmphasisStyle)
|
||||
, mTextRendering(aSource.mTextRendering)
|
||||
, mTabSize(aSource.mTabSize)
|
||||
, mTextEmphasisColor(aSource.mTextEmphasisColor)
|
||||
, mWebkitTextFillColor(aSource.mWebkitTextFillColor)
|
||||
, mWebkitTextStrokeColor(aSource.mWebkitTextStrokeColor)
|
||||
, mTabSize(aSource.mTabSize)
|
||||
, mWordSpacing(aSource.mWordSpacing)
|
||||
, mLetterSpacing(aSource.mLetterSpacing)
|
||||
, mLineHeight(aSource.mLineHeight)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue