Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
38c7cca
commit 6fed420
Showing
75 changed files
with
1,238 additions
and
642 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
504 changes: 252 additions & 252 deletions
504
...c/web-platform-tests/css/css-fonts/animations/font-size-adjust-interpolation-expected.txt
Large diffs are not rendered by default.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-005-expected.xht
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
69 changes: 69 additions & 0 deletions
69
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012-expected.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
69 changes: 69 additions & 0 deletions
69
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
73 changes: 73 additions & 0 deletions
73
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/font-size-adjust-012.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...orted/w3c/web-platform-tests/css/css-fonts/parsing/font-size-adjust-computed-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
4 changes: 2 additions & 2 deletions
4
...imported/w3c/web-platform-tests/css/css-fonts/parsing/font-size-adjust-valid-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+22.3 KB
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/resources/ahem-ex-250.otf
Binary file not shown.
Binary file added
BIN
+23.3 KB
LayoutTests/imported/w3c/web-platform-tests/css/css-fonts/resources/ahem-ex-500.otf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.