mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 737785 - Un-prefix -moz-tab-size (keeping the prefixed version as an alias for now). r=layout-reviewers,dholbert
This results in lots of new WPT test passes. There were also a couple of WPT tests that turned out to be broken; tab-size-inline-001 and -002 had errors in their reference files such that they'd never pass anywhere. So those are fixed here. Depends on D117331 Differential Revision: https://phabricator.services.mozilla.com/D117332
This commit is contained in:
parent
f50275dcbb
commit
a74bd20f2b
@ -369,7 +369,7 @@ exports.ANIMATION_TYPE_FOR_LONGHANDS = [
|
||||
"shape-margin",
|
||||
"stroke-dashoffset",
|
||||
"stroke-width",
|
||||
"-moz-tab-size",
|
||||
"tab-size",
|
||||
"text-indent",
|
||||
"text-decoration-thickness",
|
||||
"text-underline-offset",
|
||||
|
@ -867,7 +867,7 @@ exports.CSS_PROPERTIES = {
|
||||
"-moz-tab-size": {
|
||||
"isInherited": true,
|
||||
"subproperties": [
|
||||
"-moz-tab-size"
|
||||
"tab-size"
|
||||
],
|
||||
"supports": [],
|
||||
"values": [
|
||||
@ -2951,7 +2951,7 @@ exports.CSS_PROPERTIES = {
|
||||
"text-emphasis-style",
|
||||
"text-emphasis-position",
|
||||
"text-emphasis-color",
|
||||
"-moz-tab-size",
|
||||
"tab-size",
|
||||
"line-break",
|
||||
"-webkit-text-fill-color",
|
||||
"-webkit-text-stroke-color",
|
||||
@ -9946,6 +9946,19 @@ exports.CSS_PROPERTIES = {
|
||||
"unset"
|
||||
]
|
||||
},
|
||||
"tab-size": {
|
||||
"isInherited": true,
|
||||
"subproperties": [
|
||||
"tab-size"
|
||||
],
|
||||
"supports": [],
|
||||
"values": [
|
||||
"inherit",
|
||||
"initial",
|
||||
"revert",
|
||||
"unset"
|
||||
]
|
||||
},
|
||||
"table-layout": {
|
||||
"isInherited": false,
|
||||
"subproperties": [
|
||||
|
@ -84,7 +84,6 @@
|
||||
/** @type {string} */ CSSProperties.prototype.MozPaddingStart;
|
||||
/** @type {string} */ CSSProperties.prototype.MozPerspective;
|
||||
/** @type {string} */ CSSProperties.prototype.MozStackSizing;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTabSize;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransform;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransformOrigin;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransition;
|
||||
|
@ -3430,7 +3430,7 @@ static bool CanAddSpacingAfter(const gfxTextRun* aTextRun, uint32_t aOffset,
|
||||
}
|
||||
|
||||
static gfxFloat ComputeTabWidthAppUnits(const nsIFrame* aFrame) {
|
||||
const auto& tabSize = aFrame->StyleText()->mMozTabSize;
|
||||
const auto& tabSize = aFrame->StyleText()->mTabSize;
|
||||
if (tabSize.IsLength()) {
|
||||
nscoord w = tabSize.length._0.ToAppUnits();
|
||||
MOZ_ASSERT(w >= 0);
|
||||
|
@ -2912,7 +2912,7 @@ nsStyleText::nsStyleText(const Document& aDocument)
|
||||
mTextEmphasisColor(StyleColor::CurrentColor()),
|
||||
mWebkitTextFillColor(StyleColor::CurrentColor()),
|
||||
mWebkitTextStrokeColor(StyleColor::CurrentColor()),
|
||||
mMozTabSize(
|
||||
mTabSize(
|
||||
StyleNonNegativeLengthOrNumber::Number(NS_STYLE_TABSIZE_INITIAL)),
|
||||
mWordSpacing(LengthPercentage::Zero()),
|
||||
mLetterSpacing({0.}),
|
||||
@ -2952,7 +2952,7 @@ nsStyleText::nsStyleText(const nsStyleText& aSource)
|
||||
mTextEmphasisColor(aSource.mTextEmphasisColor),
|
||||
mWebkitTextFillColor(aSource.mWebkitTextFillColor),
|
||||
mWebkitTextStrokeColor(aSource.mWebkitTextStrokeColor),
|
||||
mMozTabSize(aSource.mMozTabSize),
|
||||
mTabSize(aSource.mTabSize),
|
||||
mWordSpacing(aSource.mWordSpacing),
|
||||
mLetterSpacing(aSource.mLetterSpacing),
|
||||
mLineHeight(aSource.mLineHeight),
|
||||
@ -2996,7 +2996,7 @@ nsChangeHint nsStyleText::CalcDifference(const nsStyleText& aNewData) const {
|
||||
(mTextIndent != aNewData.mTextIndent) ||
|
||||
(mTextJustify != aNewData.mTextJustify) ||
|
||||
(mWordSpacing != aNewData.mWordSpacing) ||
|
||||
(mMozTabSize != aNewData.mMozTabSize)) {
|
||||
(mTabSize != aNewData.mTabSize)) {
|
||||
return NS_STYLE_HINT_REFLOW;
|
||||
}
|
||||
|
||||
|
@ -915,7 +915,7 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleText {
|
||||
mozilla::StyleColor mWebkitTextFillColor;
|
||||
mozilla::StyleColor mWebkitTextStrokeColor;
|
||||
|
||||
mozilla::StyleNonNegativeLengthOrNumber mMozTabSize;
|
||||
mozilla::StyleNonNegativeLengthOrNumber mTabSize;
|
||||
mozilla::LengthPercentage mWordSpacing;
|
||||
mozilla::StyleLetterSpacing mLetterSpacing;
|
||||
mozilla::StyleLineHeight mLineHeight;
|
||||
|
@ -3527,8 +3527,8 @@ var gCSSProperties = {
|
||||
other_values: ["both", "horizontal", "vertical", "inline", "block"],
|
||||
invalid_values: [],
|
||||
},
|
||||
"-moz-tab-size": {
|
||||
domProp: "MozTabSize",
|
||||
"tab-size": {
|
||||
domProp: "tabSize",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: ["8"],
|
||||
@ -9832,6 +9832,13 @@ var gCSSProperties = {
|
||||
alias_for: "overflow-wrap",
|
||||
subproperties: ["overflow-wrap"],
|
||||
},
|
||||
"-moz-tab-size": {
|
||||
domProp: "MozTabSize",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
|
||||
alias_for: "tab-size",
|
||||
subproperties: ["tab-size"],
|
||||
},
|
||||
"-moz-transform": {
|
||||
domProp: "MozTransform",
|
||||
inherited: false,
|
||||
|
@ -285,8 +285,8 @@ var supported_properties = {
|
||||
test_float_zeroToOne_clamped ],
|
||||
"stroke-width": [ test_length_transition, test_percent_transition,
|
||||
test_length_clamped, test_percent_clamped, ],
|
||||
"-moz-tab-size": [ test_float_zeroToOne_transition,
|
||||
test_float_aboveOne_transition, test_length_clamped ],
|
||||
"tab-size": [ test_float_zeroToOne_transition,
|
||||
test_float_aboveOne_transition, test_length_clamped ],
|
||||
"text-decoration": [ test_color_shorthand_transition,
|
||||
test_currentcolor_shorthand_transition ],
|
||||
"text-decoration-color": [ test_color_transition,
|
||||
|
@ -29,7 +29,7 @@ nsHtml5HtmlAttributes* nsHtml5ViewSourceUtils::NewBodyAttributes() {
|
||||
int32_t tabSize = StaticPrefs::view_source_tab_size();
|
||||
if (tabSize > 0) {
|
||||
nsString style;
|
||||
style.AssignLiteral("-moz-tab-size: ");
|
||||
style.AssignLiteral("tab-size: ");
|
||||
style.AppendInt(tabSize);
|
||||
bodyAttrs->addAttribute(nsHtml5AttributeName::ATTR_STYLE,
|
||||
nsHtml5String::FromString(style), -1);
|
||||
|
@ -25,7 +25,6 @@ COUNTED_UNKNOWN_PROPERTIES = [
|
||||
"-webkit-user-modify",
|
||||
"-webkit-margin-before",
|
||||
"-webkit-margin-after",
|
||||
"tab-size",
|
||||
"-webkit-margin-start",
|
||||
"-webkit-column-break-inside",
|
||||
"-webkit-padding-start",
|
||||
|
@ -759,7 +759,7 @@ def _add_logical_props(data, props):
|
||||
# These are probably Gecko bugs and should be supported per spec.
|
||||
def _remove_common_first_line_and_first_letter_properties(props, engine):
|
||||
if engine == "gecko":
|
||||
props.remove("-moz-tab-size")
|
||||
props.remove("tab-size")
|
||||
props.remove("hyphens")
|
||||
props.remove("line-break")
|
||||
props.remove("text-align-last")
|
||||
|
@ -239,12 +239,13 @@ ${helpers.predefined_type(
|
||||
)}
|
||||
|
||||
${helpers.predefined_type(
|
||||
"-moz-tab-size",
|
||||
"tab-size",
|
||||
"NonNegativeLengthOrNumber",
|
||||
"generics::length::LengthOrNumber::Number(From::from(8.0))",
|
||||
engines="gecko",
|
||||
animation_value_type="LengthOrNumber",
|
||||
spec="https://drafts.csswg.org/css-text-3/#tab-size-property",
|
||||
aliases="-moz-tab-size",
|
||||
)}
|
||||
|
||||
${helpers.predefined_type(
|
||||
|
@ -226,7 +226,7 @@ impl<LengthPercentage> MaxSize<LengthPercentage> {
|
||||
}
|
||||
}
|
||||
|
||||
/// A generic `<length>` | `<number>` value for the `-moz-tab-size` property.
|
||||
/// A generic `<length>` | `<number>` value for the `tab-size` property.
|
||||
#[derive(
|
||||
Animate,
|
||||
Clone,
|
||||
|
@ -1,2 +0,0 @@
|
||||
[active-selection-063.html]
|
||||
expected: FAIL
|
@ -1,589 +0,0 @@
|
||||
[tab-size-interpolation.html]
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (0.3) should be [6.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (0) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (0.6) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (0.3) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (0.6) should be [9.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (-0.3) should be [7.4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (-0.3) should be [7.4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (0.6) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (-0.3) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (0.6) should be [6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (0.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (1.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (0) should be [4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (0) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (0.3) should be [6.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (1.5) should be [14.5px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (0) should be [1px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (1.5) should be [14.5px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (1.5) should be [12.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (1.5) should be [14.5px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (1.5) should be [12.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (-0.3) should be [7.4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (1.5) should be [15\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (0.3) should be [5.8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (0) should be [1px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (0) should be [4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (-0.3) should be [0px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (-0.3) should be [0px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (0.6) should be [6.4px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (0) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (0.3) should be [3\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (1.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (0) should be [4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (0.6) should be [6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (0.3) should be [8.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (1.5) should be [15\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (0.6) should be [6.4px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (0.6) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (0) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (1.5) should be [11\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (0) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (0.3) should be [6.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (0.3) should be [5.8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (-0.3) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (0) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (-0.3) should be [0px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (0.3) should be [3.7px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (0.6) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (-0.3) should be [2.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (0.6) should be [6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (0) should be [1px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (0.3) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (-0.3) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (0.6) should be [6.4px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (0) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (1.5) should be [15\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (-0.3) should be [0px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (0) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (0.3) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (0) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1px\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (-0.3) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (0.3) should be [8.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (1.5) should be [11\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (-0.3) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (-0.3) should be [3.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (0) should be [4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (-0.3) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (1.5) should be [13\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (0.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (1.5) should be [14.5px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (0) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (0.6) should be [7.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (-0.3) should be [3.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (-0.3) should be [7.4\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (0.3) should be [3\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (0.3) should be [8.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (-0.3) should be [2.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [inherit\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (1.5) should be [12.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (1.5) should be [11\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (0.3) should be [3.7px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [inherit\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (0) should be [1\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [initial\] to [10\] at (0.6) should be [9.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from neutral to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (0.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (0) should be [1px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (0.3) should be [3\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [0\] to [10\] at (0.3) should be [3\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [1\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (1.5) should be [15\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (1.5) should be [11\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (0.3) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (0.6) should be [9.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (-0.3) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (-0.3) should be [2.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (0.3) should be [5.8\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (0.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1px\] to [10px\] at (0.3) should be [3.7px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (0) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (1.5) should be [13\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (-0.3) should be [2.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (0.6) should be [6.4px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1\] to [10px\] at (0) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (0.6) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (0.6) should be [7.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1px\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (0.6) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (0) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [1\] to [10px\] at (1.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [0\] to [10\] at (-0.3) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (0.6) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [4\] to [10\] at (1.5) should be [13\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [unset\] to [10\] at (1.5) should be [5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (0.6) should be [6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [1\] to [10px\] at (1.5) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [initial\] to [10\] at (0) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [unset\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [unset\] to [10\] at (-0.3) should be [23\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [unset\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [initial\] to [10\] at (0.3) should be [8.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (0.3) should be [3.7px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (0.6) should be [7.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [0\] to [10\] at (0) should be [0\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [inherit\] to [10\] at (0.3) should be [17\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [4\] to [10\] at (0.6) should be [7.6\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (0) should be [20\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (-0.3) should be [3.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (0.3) should be [6.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from [1px\] to [10px\] at (1) should be [10px\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [4\] to [10\] at (0.3) should be [5.8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from neutral to [10\] at (-0.3) should be [3.5\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions with transition: all: property <tab-size> from [4\] to [10\] at (1.5) should be [13\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [initial\] to [10\] at (0.6) should be [9.2\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from [0\] to [10\] at (1) should be [10\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Animations: property <tab-size> from [inherit\] to [10\] at (0.6) should be [14\]]
|
||||
expected: FAIL
|
||||
|
||||
[Web Animations: property <tab-size> from neutral to [10\] at (0.6) should be [8\]]
|
||||
expected: FAIL
|
||||
|
||||
[CSS Transitions: property <tab-size> from neutral to [10\] at (1.5) should be [12.5\]]
|
||||
expected: FAIL
|
||||
|
@ -5,15 +5,9 @@
|
||||
[Property hanging-punctuation inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property hanging-punctuation has initial value none]
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size has initial value 8]
|
||||
expected: FAIL
|
||||
|
||||
[Property text-align-all inherits]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1,25 +0,0 @@
|
||||
[tab-size-computed.html]
|
||||
[Property tab-size value '2.5']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value '4']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value 'calc(10px + 0.5em)']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value '0px']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value '16']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value '10px']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value 'calc(10px - 0.5em)']
|
||||
expected: FAIL
|
||||
|
||||
[Property tab-size value '0']
|
||||
expected: FAIL
|
||||
|
@ -1,16 +0,0 @@
|
||||
[tab-size-valid.html]
|
||||
[e.style['tab-size'\] = "0px" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['tab-size'\] = "10px" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['tab-size'\] = "0" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['tab-size'\] = "calc(2em + 3ex)" should set the property value]
|
||||
expected: FAIL
|
||||
|
||||
[e.style['tab-size'\] = "2.5" should set the property value]
|
||||
expected: FAIL
|
||||
|
@ -1,34 +0,0 @@
|
||||
[tab-size-computed-value-001.html]
|
||||
[testing tab-size: 4]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 0.5in]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 2.54cm]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 25.4mm]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 18pt]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 5pc]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 101.6Q]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 7px]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 1em]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 2ex]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: 3rem]
|
||||
expected: FAIL
|
||||
|
@ -1,2 +0,0 @@
|
||||
[tab-size-inheritance-001.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-inline-001.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-inline-002.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-integer-001.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-integer-002.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-integer-003.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-integer-004.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-length-001.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-length-002.html]
|
||||
expected: FAIL
|
@ -1,2 +0,0 @@
|
||||
[tab-size-percent-001.html]
|
||||
expected: FAIL
|
@ -1,4 +0,0 @@
|
||||
[tab-size.html]
|
||||
[Test tab-size measurements]
|
||||
expected: FAIL
|
||||
|
@ -1,28 +0,0 @@
|
||||
[calc-numbers.html]
|
||||
[testing tab-size: calc(bla) 10px]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(10px)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(100%)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(10px) bla]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(2 * 3)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(2 * -4)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(1 + 100%)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(1 + 1px)]
|
||||
expected: FAIL
|
||||
|
||||
[testing tab-size: calc(2 / 4)]
|
||||
expected: FAIL
|
||||
|
@ -9,7 +9,7 @@ div {
|
||||
</style>
|
||||
|
||||
<p>Test passes if the three “A” letters below are vertically aligned with eachother.
|
||||
<div class=ref>
|
||||
<div class=ref><br>
|
||||
A<br>
|
||||
A<br>
|
||||
A
|
||||
|
@ -14,7 +14,7 @@ div {
|
||||
|
||||
<p>Test passes if the black “A” lines up vertically with the blue one, not the orange one.
|
||||
|
||||
<div class=right> A</div>
|
||||
<div> A</div>
|
||||
|
||||
<div class=right> A</div>
|
||||
<div class=wrong> A</div>
|
||||
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text level 3 Test reference</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<style>
|
||||
div {
|
||||
font-family: monospace; /* so we can compare tab with a count of preserved spaces */
|
||||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the "1"s all line up vertically:
|
||||
<div>1 2 3 1 2 3 1 2 3 1
|
||||
1 1 1 1
|
||||
1 1 1 1</div>
|
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text level 3 Test: tab-size and letter-spacing</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property">
|
||||
<link rel="match" href="tab-size-spacing-002-ref.html">
|
||||
<meta name="assert" content="For the tab-size property, a <number> represents the measure as a multiple of the space character’s advance width (U+0020) including its associated letter-spacing and word-spacing">
|
||||
<style>
|
||||
div {
|
||||
font-family: monospace; /* so we can compare tab with a count of preserved spaces */
|
||||
white-space: pre;
|
||||
}
|
||||
.test {
|
||||
letter-spacing: 1ch; /* effectively double the advance of the characters */
|
||||
tab-size: 3;
|
||||
}
|
||||
.ref1 {
|
||||
letter-spacing: 1ch;
|
||||
}
|
||||
.ref2 {
|
||||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the "1"s all line up vertically:
|
||||
<div class=ref1>1231231231</div>
|
||||
<div class=test>1	1	1	1</div>
|
||||
<div class=ref2>1 1 1 1</div>
|
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text level 3 Test reference</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<style>
|
||||
div {
|
||||
font-family: monospace; /* so we can compare tab with a count of preserved spaces */
|
||||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the "1"s all line up vertically:
|
||||
<div>1 2 1 2 1 2 1
|
||||
1 1 1 1
|
||||
1 1 1 1</div>
|
@ -0,0 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>CSS Text level 3 Test: tab-size and word-spacing</title>
|
||||
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#tab-size-property">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#letter-spacing-property">
|
||||
<link rel="match" href="tab-size-spacing-003-ref.html">
|
||||
<meta name="assert" content="For the tab-size property, a <number> represents the measure as a multiple of the space character’s advance width (U+0020) including its associated letter-spacing and word-spacing">
|
||||
<style>
|
||||
div {
|
||||
font-family: monospace; /* so we can compare tab with a count of preserved spaces */
|
||||
white-space: pre;
|
||||
}
|
||||
.test {
|
||||
word-spacing: 100%; /* effectively double the size of SPACE, and hence of tabs */
|
||||
tab-size: 3;
|
||||
}
|
||||
.ref1 {
|
||||
word-spacing: 100%;
|
||||
}
|
||||
.ref2 {
|
||||
white-space: pre;
|
||||
}
|
||||
</style>
|
||||
|
||||
<p>Test passes if the "1"s all line up vertically:
|
||||
<div class=ref1>1 2 1 2 1 2 1</div>
|
||||
<div class=test>1	1	1	1</div>
|
||||
<div class=ref2>1 1 1 1</div>
|
Loading…
Reference in New Issue
Block a user