Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement CSS font-size-adjust property
https://bugs.webkit.org/show_bug.cgi?id=15257
rdar://23286433

Reviewed by Myles C. Maxfield.

Implementing font-size-adjust CSS Fonts Module level 4 [1].
[1]: https://www.w3.org/TR/css-fonts-4/#font-size-adjust-prop

* LayoutTests/TestExpectations:
* LayoutTests/fast/css/getComputedStyle/computed-style-font-family-expected.txt:
* LayoutTests/imported/w3c/resources/resource-files.json:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/animations/font-size-adjust-interpolation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-005-expected.xht: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012-expected.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012-ref.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012.html: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/inheritance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-size-adjust-computed-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/parsing/font-size-adjust-valid-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/resources/ahem-ex-250.otf: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/resources/ahem-ex-500.otf: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-letter-allowed-properties-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/first-line-allowed-properties-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-variables/variable-presentation-attribute-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/presentation-attributes-irrelevant-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/presentation-attributes-relevant-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/presentation-attributes-unknown-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/svg/styling/required-properties-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/font-size-adjust-expected.txt:
* LayoutTests/platform/glib/imported/w3c/web-platform-tests/svg/import/text-fonts-204-t-manual-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-003-expected.txt: Added.
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt:
* LayoutTests/platform/gtk/tables/mozilla/bugs/bug2886-2-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt:
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-003-expected.txt: Added.
* LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/ios/tables/mozilla/bugs/bug2886-2-expected.txt:
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/ipad/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-layer-expected.txt:
* LayoutTests/platform/mac/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-003-expected.txt: Added.
* LayoutTests/platform/mac/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-005-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug2886-2-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt:
* LayoutTests/platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-pseudo-expected.txt:
* Source/WebCore/animation/CSSPropertyAnimation.cpp:
(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
* Source/WebCore/css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator std::optional<float> const):
* Source/WebCore/css/CSSProperties.json:
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::fontSizeAdjustFromStyle):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle):
* Source/WebCore/css/parser/CSSPropertyParser.cpp:
(WebCore::consumeFontSizeAdjust):
(WebCore::CSSPropertyParser::parseSingleValue):
* Source/WebCore/platform/graphics/FontCascadeCache.h:
(WebCore::FontDescriptionKeyRareData::create):
(WebCore::FontDescriptionKeyRareData::fontSizeAdjust const):
(WebCore::FontDescriptionKeyRareData::operator== const):
(WebCore::FontDescriptionKeyRareData::FontDescriptionKeyRareData):
(WebCore::add):
(WebCore::FontDescriptionKey::FontDescriptionKey):
* Source/WebCore/platform/graphics/FontCascadeDescription.cpp:
* Source/WebCore/platform/graphics/FontCascadeDescription.h:
(WebCore::FontCascadeDescription::initialFontSizeAdjust):
* Source/WebCore/platform/graphics/FontDescription.h:
(WebCore::FontDescription::fontSizeAdjust const):
(WebCore::FontDescription::setFontSizeAdjust):
(WebCore::FontDescription::operator== const):
(WebCore::FontDescription::encode const):
(WebCore::FontDescription::decode):
* Source/WebCore/platform/graphics/FontPlatformData.cpp:
(WebCore::FontPlatformData::cloneWithSize):
(WebCore::FontPlatformData::updateSize):
(WebCore::FontPlatformData::updateSizeWithFontSizeAdjust):
* Source/WebCore/platform/graphics/FontPlatformData.h:
* Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:
(WebCore::FontCache::createFontPlatformData):
* Source/WebCore/platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp:
(WebCore::FontFamilySpecificationCoreText::fontRanges const):
* Source/WebCore/platform/graphics/coretext/FontPlatformDataCoreText.cpp:
(WebCore::FontPlatformData::cloneWithSize):
(WebCore::FontPlatformData::updateSize):
* Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp:
(WebCore::FontCache::createFontPlatformData):
* Source/WebCore/platform/graphics/freetype/FontCustomPlatformDataFreeType.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:
(WebCore::FontPlatformData::cloneWithSize):
(WebCore::FontPlatformData::updateSize):
* Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp:
(WebCore::Font::platformCreateScaledFont const):
* Source/WebCore/platform/graphics/mac/FontCustomPlatformData.cpp:
(WebCore::FontCustomPlatformData::fontPlatformData):
* Source/WebCore/rendering/style/RenderStyle.cpp:
(WebCore::RenderStyle::setLetterSpacing):
(WebCore::RenderStyle::setFontSize):
(WebCore::RenderStyle::setFontSizeAdjust):
(WebCore::RenderStyle::setFontVariationSettings):
(WebCore::RenderStyle::setFontWeight):
(WebCore::RenderStyle::setFontStretch):
(WebCore::RenderStyle::setFontItalic):
(WebCore::RenderStyle::setFontPalette):
* Source/WebCore/rendering/style/RenderStyle.h:
(WebCore::RenderStyle::fontSizeAdjust const):
* Source/WebCore/style/PropertyAllowlist.cpp:
(WebCore::Style::isValidMarkerStyleProperty):
* Source/WebCore/style/StyleBuilderCustom.h:
(WebCore::Style::BuilderCustom::applyValueFontSizeAdjust):
* Source/WebCore/style/StyleFontSizeFunctions.cpp:
(WebCore::Style::adjustedFontSize):
* Source/WebCore/style/StyleFontSizeFunctions.h:
* Source/WebCore/svg/SVGElement.cpp:
(WebCore::createAttributeNameToCSSPropertyIDMap):

Canonical link: https://commits.webkit.org/255927@main
  • Loading branch information
vitorroriz authored and Brent Fulgham committed Oct 24, 2022
1 parent 38c7cca commit 6fed420
Show file tree
Hide file tree
Showing 75 changed files with 1,238 additions and 642 deletions.
6 changes: 1 addition & 5 deletions LayoutTests/TestExpectations
Expand Up @@ -3783,11 +3783,7 @@ webkit.org/b/246121 imported/w3c/web-platform-tests/css/css-fonts/font-variant-a
webkit.org/b/246121 imported/w3c/web-platform-tests/css/css-fonts/font-variant-alternates-17.html [ ImageOnlyFailure ]
webkit.org/b/246121 imported/w3c/web-platform-tests/css/css-fonts/font-variant-alternates-18.html [ ImageOnlyFailure ]

# font-size-adjust
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-001.html [ ImageOnlyFailure ]
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-002.html [ ImageOnlyFailure ]
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-zero-1.html [ ImageOnlyFailure ]
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-zero-2.html [ ImageOnlyFailure ]
# font-size-adjust CSS Fonts Module level 5 (current implementation is at level 4)
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-009.html [ ImageOnlyFailure ]
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-010.html [ ImageOnlyFailure ]
webkit.org/b/15257 imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-011.html [ ImageOnlyFailure ]
Expand Down
Expand Up @@ -6,6 +6,7 @@ font-kerning: auto;
font-optical-sizing: auto;
font-palette: normal;
font-size: 16px;
font-size-adjust: none;
font-stretch: normal;
font-style: normal;
font-synthesis-small-caps: auto;
Expand Down
3 changes: 3 additions & 0 deletions LayoutTests/imported/w3c/resources/resource-files.json
Expand Up @@ -35,6 +35,9 @@
"css/css-flexbox/justify-content_space-between-001.html",
"css/css-flexbox/order-001.htm",
"css/css-font-loading/fontfaceset-no-root-element.html",
"css/css-fonts/font-size-adjust-001-ref.html",
"css/css-fonts/font-size-adjust-002-ref.html",
"css/css-fonts/font-size-adjust-003.xht",
"css/css-multicol/multicol-rule-large-002.xht",
"css/css-pseudo/active-selection-051-ref.html",
"css/css-pseudo/backdrop-animate-002-ref.html",
Expand Down
Expand Up @@ -131,6 +131,7 @@ PASS font-kerning
PASS font-optical-sizing
PASS font-palette
PASS font-size
PASS font-size-adjust
PASS font-stretch
PASS font-style
PASS font-synthesis-small-caps
Expand Down
Expand Up @@ -127,6 +127,7 @@ PASS font-kerning
PASS font-optical-sizing
PASS font-palette
PASS font-size
PASS font-size-adjust
PASS font-stretch
PASS font-style
PASS font-synthesis-small-caps
Expand Down

Large diffs are not rendered by default.

@@ -0,0 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>CSS Reftest Reference</title>

<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />

</head>

<body>

<p>Test passes if there is <strong>no red</strong>.</p>

</body>
</html>
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: font-size-adjust property</title>
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-size-adjust-prop">
<style>
@font-face {
font-family: 'ahem-ex-500';
src: url('./resources/ahem-ex-500.otf') format('opentype');
}
@font-face {
font-family: 'ahem-ex-250';
src: url('./resources/ahem-ex-250.otf') format('opentype');
}
.wrapper {
--primary-font: 'ahem-ex-500';
--secondary-font: 'ahem-ex-250';
}
.test {
font-family: var(--primary-font), var(--secondary-font);
font-size: 50px;
color: peru;
height: 50px;
}
.primary-font {
font-family: var(--primary-font);
}
.secondary-font {
font-family: var(--secondary-font);
}
.tall-inline-block {
display: inline-block;
height: 100px;
}
.description {
font-family: 'Times New Roman';
font-size: 14px;
}
.main {
font-size: 16px;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div class="description main">For this test we are using two fonts. AhemEx500 has a aspect value (xHeight/size) of 0.5 and AhemEx250 an aspect value of 0.25. On both fonts all glyphs used in the tests look like a square but AhemEx500 doesn't contain 'A' (U+0041).</div>
<div class="wrapper">
<div class="description">1. Same glyph x in different spans with different fonts. The second one is adjusted with font-size-adjust. They should have the same size for test to pass.</div>
<div class="test">
<span class="primary-font">xx</span>
</div>
</div>
<div class="wrapper">
<div class="description">
2. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>without</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note it is smaller than the first glyph.
</div>
<div class="test"><span>xA</span></div>
</div>
<div class="wrapper">
<div class="description">
3. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>with</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note that now they have the same size.
</div>
<div class="test">
<!-- We are inserting a tall inline-block here to make the position of the baseline independent of the adjusted glyph since on the ref test we don't use font-size-adjust but font-size -->
<span>xx<span class="tall-inline-block"></span></span>
</div>
</div>
</html>
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: font-size-adjust property</title>
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-size-adjust-prop">
<style>
@font-face {
font-family: 'ahem-ex-500';
src: url('./resources/ahem-ex-500.otf') format('opentype');
}
@font-face {
font-family: 'ahem-ex-250';
src: url('./resources/ahem-ex-250.otf') format('opentype');
}
.wrapper {
--primary-font: 'ahem-ex-500';
--secondary-font: 'ahem-ex-250';
}
.test {
font-family: var(--primary-font), var(--secondary-font);
font-size: 50px;
color: peru;
height: 50px;
}
.primary-font {
font-family: var(--primary-font);
}
.secondary-font {
font-family: var(--secondary-font);
}
.tall-inline-block {
display: inline-block;
height: 100px;
}
.description {
font-family: 'Times New Roman';
font-size: 14px;
}
.main {
font-size: 16px;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div class="description main">For this test we are using two fonts. AhemEx500 has a aspect value (xHeight/size) of 0.5 and AhemEx250 an aspect value of 0.25. On both fonts all glyphs used in the tests look like a square but AhemEx500 doesn't contain 'A' (U+0041).</div>
<div class="wrapper">
<div class="description">1. Same glyph x in different spans with different fonts. The second one is adjusted with font-size-adjust. They should have the same size for test to pass.</div>
<div class="test">
<span class="primary-font">xx</span>
</div>
</div>
<div class="wrapper">
<div class="description">
2. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>without</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note it is smaller than the first glyph.
</div>
<div class="test"><span>xA</span></div>
</div>
<div class="wrapper">
<div class="description">
3. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>with</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note that now they have the same size.
</div>
<div class="test">
<!-- We are inserting a tall inline-block here to make the position of the baseline independent of the adjusted glyph since on the ref test we don't use font-size-adjust but font-size -->
<span>xx<span class="tall-inline-block"></span></span>
</div>
</div>
</html>
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Test: font-size-adjust property</title>
<link rel="match" href="font-size-adjust-012-ref.html">
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-size-adjust-prop">
<style>
@font-face {
font-family: 'ahem-ex-500';
src: url('./resources/ahem-ex-500.otf') format('opentype');
}
@font-face {
font-family: 'ahem-ex-250';
src: url('./resources/ahem-ex-250.otf') format('opentype');
}
.wrapper {
--primary-font: 'ahem-ex-500';
--secondary-font: 'ahem-ex-250';
}
.adjusted {
font-size-adjust: 0.5;
}
.test {
font-family: var(--primary-font), var(--secondary-font);
font-size: 50px;
color: peru;
height: 50px;
}
.primary-font {
font-family: var(--primary-font);
}
.secondary-font {
font-family: var(--secondary-font);
}
.tall-inline-block {
display: inline-block;
height: 100px;
}
.description {
font-family: 'Times New Roman';
font-size: 14px;
}
.main {
font-size: 16px;
margin-bottom: 8px;
}
</style>
</head>
<body>
<div class="description main">For this test we are using two fonts. AhemEx500 has a aspect value (xHeight/size) of 0.5 and AhemEx250 an aspect value of 0.25. On both fonts all glyphs used in the tests look like a square but AhemEx500 doesn't contain 'A' (U+0041).</div>
<div class="wrapper">
<div class="description">1. Same glyph x in different spans with different fonts. The second one is adjusted with font-size-adjust. They should have the same size for test to pass.</div>
<div class="test">
<span class="primary-font">x</span><span class="primary-font adjusted">x</span>
</div>
</div>
<div class="wrapper">
<div class="description">
2. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>without</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note it is smaller than the first glyph.
</div>
<div class="test"><span>xA</span></div>
</div>
<div class="wrapper">
<div class="description">
3. Different glyphs 'x' and 'A' in the same span, with 2 fonts in font-family fallback and <em>with</em> font-size-adjust. The second glyph can't be rendered by primary font so it will individually fallback to the secondary font. Note that now they have the same size.
</div>
<div class="test">
<!-- We are inserting a tall inline-block here to make the position of the baseline independent of the adjusted glyph since on the ref test we don't use font-size-adjust but font-size -->
<span class="adjusted">xA<span class="tall-inline-block"></span></span>
</div>
</div>
</html>
Expand Up @@ -10,8 +10,8 @@ PASS Property font-optical-sizing has initial value auto
PASS Property font-optical-sizing inherits
PASS Property font-size has initial value 16px
PASS Property font-size inherits
FAIL Property font-size-adjust has initial value none assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust inherits assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
PASS Property font-size-adjust has initial value none
PASS Property font-size-adjust inherits
FAIL Property font-stretch has initial value 100% assert_equals: expected "100%" but got "normal"
FAIL Property font-stretch inherits assert_equals: expected "75%" but got "condensed"
PASS Property font-style has initial value normal
Expand Down
@@ -1,9 +1,9 @@

FAIL Property font-size-adjust value 'none' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value '0.5' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value 'ex-height 0.5' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value 'cap-height 0.8' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value 'ch-width 0.4' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value 'ic-width 0.9' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
FAIL Property font-size-adjust value 'ic-height 1.1' assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
PASS Property font-size-adjust value 'none'
PASS Property font-size-adjust value '0.5'
FAIL Property font-size-adjust value 'ex-height 0.5' assert_true: 'ex-height 0.5' is a supported value for font-size-adjust. expected true got false
FAIL Property font-size-adjust value 'cap-height 0.8' assert_true: 'cap-height 0.8' is a supported value for font-size-adjust. expected true got false
FAIL Property font-size-adjust value 'ch-width 0.4' assert_true: 'ch-width 0.4' is a supported value for font-size-adjust. expected true got false
FAIL Property font-size-adjust value 'ic-width 0.9' assert_true: 'ic-width 0.9' is a supported value for font-size-adjust. expected true got false
FAIL Property font-size-adjust value 'ic-height 1.1' assert_true: 'ic-height 1.1' is a supported value for font-size-adjust. expected true got false

@@ -1,6 +1,6 @@

FAIL e.style['font-size-adjust'] = "none" should set the property value assert_not_equals: property should be set got disallowed value ""
FAIL e.style['font-size-adjust'] = "0.5" should set the property value assert_not_equals: property should be set got disallowed value ""
PASS e.style['font-size-adjust'] = "none" should set the property value
PASS e.style['font-size-adjust'] = "0.5" should set the property value
FAIL e.style['font-size-adjust'] = "ex-height 0.5" should set the property value assert_not_equals: property should be set got disallowed value ""
FAIL e.style['font-size-adjust'] = "cap-height 0.8" should set the property value assert_not_equals: property should be set got disallowed value ""
FAIL e.style['font-size-adjust'] = "ch-width 0.4" should set the property value assert_not_equals: property should be set got disallowed value ""
Expand Down
Binary file not shown.
Binary file not shown.
Expand Up @@ -17,7 +17,7 @@ PASS color should be applied to first-letter pseudo elements.
PASS float should be applied to first-letter pseudo elements.
PASS font should be applied to first-letter pseudo elements.
PASS fontFeatureSettings should be applied to first-letter pseudo elements.
FAIL fontSizeAdjust should be applied to first-letter pseudo elements. assert_equals: expected (string) "0.5" but got (undefined) undefined
PASS fontSizeAdjust should be applied to first-letter pseudo elements.
PASS fontKerning should be applied to first-letter pseudo elements.
PASS fontVariationSettings should be applied to first-letter pseudo elements.
PASS letterSpacing should be applied to first-letter pseudo elements.
Expand Down
Expand Up @@ -14,7 +14,7 @@ PASS fontFamily should be applied to first-line pseudo elements.
PASS fontFeatureSettings should be applied to first-line pseudo elements.
PASS fontKerning should be applied to first-line pseudo elements.
PASS fontSize should be applied to first-line pseudo elements.
FAIL fontSizeAdjust should be applied to first-line pseudo elements. assert_equals: expected (string) "0.5" but got (undefined) undefined
PASS fontSizeAdjust should be applied to first-line pseudo elements.
PASS fontStyle should be applied to first-line pseudo elements.
PASS fontVariant should be applied to first-line pseudo elements.
PASS fontWeight should be applied to first-line pseudo elements.
Expand Down
Expand Up @@ -4,7 +4,7 @@ PASS Property font-family value 'Ahem' in ::marker
PASS Property font-feature-settings value '"smcp"' in ::marker
PASS Property font-kerning value 'none' in ::marker
PASS Property font-size value '25px' in ::marker
FAIL Property font-size-adjust value '1' in ::marker assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
PASS Property font-size-adjust value '1' in ::marker
PASS Property font-stretch value 'expanded' in ::marker
PASS Property font-style value 'italic' in ::marker
PASS Property font-synthesis value 'none' in ::marker
Expand Down
Expand Up @@ -4,7 +4,7 @@ PASS Animation of font-family in ::marker
PASS Animation of font-feature-settings in ::marker
PASS Animation of font-kerning in ::marker
PASS Animation of font-size in ::marker
FAIL Animation of font-size-adjust in ::marker assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
PASS Animation of font-size-adjust in ::marker
PASS Animation of font-stretch in ::marker
PASS Animation of font-style in ::marker
PASS Animation of font-synthesis in ::marker
Expand Down Expand Up @@ -51,7 +51,7 @@ PASS Transition of font-family in ::marker
PASS Transition of font-feature-settings in ::marker
PASS Transition of font-kerning in ::marker
PASS Transition of font-size in ::marker
FAIL Transition of font-size-adjust in ::marker assert_true: font-size-adjust doesn't seem to be supported in the computed style expected true got false
PASS Transition of font-size-adjust in ::marker
PASS Transition of font-stretch in ::marker
PASS Transition of font-style in ::marker
PASS Transition of font-synthesis in ::marker
Expand Down
Expand Up @@ -20,7 +20,7 @@ FAIL Testing 'flood-color'. assert_equals: Default value. expected "" but got "r
PASS Testing 'flood-opacity'.
FAIL Testing 'font-family'. assert_equals: Default value. expected "Times New Roman" but got "-webkit-standard"
PASS Testing 'font-size'.
FAIL Testing 'font-size-adjust'. assert_equals: Default value. expected "none" but got ""
PASS Testing 'font-size-adjust'.
PASS Testing 'font-stretch'.
PASS Testing 'font-style'.
PASS Testing 'font-weight'.
Expand Down

0 comments on commit 6fed420

Please sign in to comment.