Changeset 268659 in webkit
- Timestamp:
- Oct 18, 2020 9:11:03 AM (21 months ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/css/aspect-ratio-inheritance-expected.txt (modified) (1 diff)
-
LayoutTests/fast/css/aspect-ratio-inheritance.html (modified) (1 diff)
-
LayoutTests/fast/css/aspect-ratio-parsing-tests-expected.txt (modified) (1 diff)
-
LayoutTests/fast/css/aspect-ratio-parsing-tests.html (modified) (1 diff)
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/mediaqueries/aspect-ratio-serialization-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSAspectRatioValue.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r268640 r268659 1 2020-10-18 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Serialize aspect ratio with spaces around the slash. 4 https://bugs.webkit.org/show_bug.cgi?id=217888 5 6 Reviewed by Sam Weinig. 7 8 * fast/css/aspect-ratio-inheritance-expected.txt: 9 * fast/css/aspect-ratio-inheritance.html: 10 * fast/css/aspect-ratio-parsing-tests-expected.txt: 11 * fast/css/aspect-ratio-parsing-tests.html: 12 Adjust tests 13 1 14 2020-10-17 Ross Kirsling <ross.kirsling@sony.com> 2 15 -
trunk/LayoutTests/fast/css/aspect-ratio-inheritance-expected.txt
r163840 r268659 1 PASS testComputedValue("aspectRatioTest1", "1 / 4", "-webkit-aspect-ratio") is "1 /4"2 PASS testComputedValue("aspectRatioTest1", "inherit", "-webkit-aspect-ratio") is "1 /2"1 PASS testComputedValue("aspectRatioTest1", "1 / 4", "-webkit-aspect-ratio") is "1 / 4" 2 PASS testComputedValue("aspectRatioTest1", "inherit", "-webkit-aspect-ratio") is "1 / 2" 3 3 PASS testComputedValue("aspectRatioTest1", "auto", "-webkit-aspect-ratio") is "auto" 4 PASS testComputedValue("aspectRatioTest2", "1 / 4", "-webkit-aspect-ratio") is "1 /4"4 PASS testComputedValue("aspectRatioTest2", "1 / 4", "-webkit-aspect-ratio") is "1 / 4" 5 5 PASS testComputedValue("aspectRatioTest2", "inherit", "-webkit-aspect-ratio") is "from-dimensions" 6 PASS testComputedValue("aspectRatioTest3", "1 / 4", "-webkit-aspect-ratio") is "1 /4"6 PASS testComputedValue("aspectRatioTest3", "1 / 4", "-webkit-aspect-ratio") is "1 / 4" 7 7 PASS testComputedValue("aspectRatioTest3", "inherit", "-webkit-aspect-ratio") is "from-intrinsic" 8 8 PASS successfullyParsed is true -
trunk/LayoutTests/fast/css/aspect-ratio-inheritance.html
r163840 r268659 18 18 return computedValue; 19 19 } 20 shouldBeEqualToString('testComputedValue("aspectRatioTest1", "1 / 4", "-webkit-aspect-ratio")', '1 /4');21 shouldBeEqualToString('testComputedValue("aspectRatioTest1", "inherit", "-webkit-aspect-ratio")', '1 /2');20 shouldBeEqualToString('testComputedValue("aspectRatioTest1", "1 / 4", "-webkit-aspect-ratio")', '1 / 4'); 21 shouldBeEqualToString('testComputedValue("aspectRatioTest1", "inherit", "-webkit-aspect-ratio")', '1 / 2'); 22 22 shouldBeEqualToString('testComputedValue("aspectRatioTest1", "auto", "-webkit-aspect-ratio")', 'auto'); 23 shouldBeEqualToString('testComputedValue("aspectRatioTest2", "1 / 4", "-webkit-aspect-ratio")', '1 /4');23 shouldBeEqualToString('testComputedValue("aspectRatioTest2", "1 / 4", "-webkit-aspect-ratio")', '1 / 4'); 24 24 shouldBeEqualToString('testComputedValue("aspectRatioTest2", "inherit", "-webkit-aspect-ratio")', 'from-dimensions'); 25 shouldBeEqualToString('testComputedValue("aspectRatioTest3", "1 / 4", "-webkit-aspect-ratio")', '1 /4');25 shouldBeEqualToString('testComputedValue("aspectRatioTest3", "1 / 4", "-webkit-aspect-ratio")', '1 / 4'); 26 26 shouldBeEqualToString('testComputedValue("aspectRatioTest3", "inherit", "-webkit-aspect-ratio")', 'from-intrinsic'); 27 27 </script> -
trunk/LayoutTests/fast/css/aspect-ratio-parsing-tests-expected.txt
r163840 r268659 4 4 5 5 6 PASS testParsing("aspectRatioTest", "2/1", "-webkit-aspect-ratio") is "2 /1"7 PASS testParsing("aspectRatioTest", "1/1", "-webkit-aspect-ratio") is "1 /1"8 PASS testParsing("aspectRatioTest", "1/4", "-webkit-aspect-ratio") is "1 /4"9 PASS testParsing("aspectRatioTest", "1 / 2", "-webkit-aspect-ratio") is "1 /2"10 PASS testParsing("aspectRatioTest", "1.2 / 2", "-webkit-aspect-ratio") is "1.2 /2"11 PASS testParsing("aspectRatioTest", "2 / 0.5", "-webkit-aspect-ratio") is "2 /0.5"6 PASS testParsing("aspectRatioTest", "2/1", "-webkit-aspect-ratio") is "2 / 1" 7 PASS testParsing("aspectRatioTest", "1/1", "-webkit-aspect-ratio") is "1 / 1" 8 PASS testParsing("aspectRatioTest", "1/4", "-webkit-aspect-ratio") is "1 / 4" 9 PASS testParsing("aspectRatioTest", "1 / 2", "-webkit-aspect-ratio") is "1 / 2" 10 PASS testParsing("aspectRatioTest", "1.2 / 2", "-webkit-aspect-ratio") is "1.2 / 2" 11 PASS testParsing("aspectRatioTest", "2 / 0.5", "-webkit-aspect-ratio") is "2 / 0.5" 12 12 PASS testParsing("aspectRatioTest", "inherit", "-webkit-aspect-ratio") is "inherit" 13 13 PASS testParsing("aspectRatioTest", "from-dimensions", "-webkit-aspect-ratio") is "from-dimensions" -
trunk/LayoutTests/fast/css/aspect-ratio-parsing-tests.html
r163840 r268659 17 17 } 18 18 19 shouldBeEqualToString('testParsing("aspectRatioTest", "2/1", "-webkit-aspect-ratio")', '2 /1');20 shouldBeEqualToString('testParsing("aspectRatioTest", "1/1", "-webkit-aspect-ratio")', '1 /1');21 shouldBeEqualToString('testParsing("aspectRatioTest", "1/4", "-webkit-aspect-ratio")', '1 /4');22 shouldBeEqualToString('testParsing("aspectRatioTest", "1 / 2", "-webkit-aspect-ratio")', '1 /2');23 shouldBeEqualToString('testParsing("aspectRatioTest", "1.2 / 2", "-webkit-aspect-ratio")', '1.2 /2');24 shouldBeEqualToString('testParsing("aspectRatioTest", "2 / 0.5", "-webkit-aspect-ratio")', '2 /0.5');19 shouldBeEqualToString('testParsing("aspectRatioTest", "2/1", "-webkit-aspect-ratio")', '2 / 1'); 20 shouldBeEqualToString('testParsing("aspectRatioTest", "1/1", "-webkit-aspect-ratio")', '1 / 1'); 21 shouldBeEqualToString('testParsing("aspectRatioTest", "1/4", "-webkit-aspect-ratio")', '1 / 4'); 22 shouldBeEqualToString('testParsing("aspectRatioTest", "1 / 2", "-webkit-aspect-ratio")', '1 / 2'); 23 shouldBeEqualToString('testParsing("aspectRatioTest", "1.2 / 2", "-webkit-aspect-ratio")', '1.2 / 2'); 24 shouldBeEqualToString('testParsing("aspectRatioTest", "2 / 0.5", "-webkit-aspect-ratio")', '2 / 0.5'); 25 25 shouldBeEqualToString('testParsing("aspectRatioTest", "inherit", "-webkit-aspect-ratio")', 'inherit'); 26 26 shouldBeEqualToString('testParsing("aspectRatioTest", "from-dimensions", "-webkit-aspect-ratio")', 'from-dimensions'); -
trunk/LayoutTests/imported/w3c/ChangeLog
r268648 r268659 1 2020-10-18 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Serialize aspect ratio with spaces around the slash. 4 https://bugs.webkit.org/show_bug.cgi?id=217888 5 6 Reviewed by Sam Weinig. 7 8 * web-platform-tests/css/mediaqueries/aspect-ratio-serialization-expected.txt: Annotate progression. 9 1 10 2020-10-16 Darin Adler <darin@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/mediaqueries/aspect-ratio-serialization-expected.txt
r264522 r268659 1 1 2 FAIL <ratio> serializes with spaces around the integer. assert_equals: expected "(aspect-ratio: 1 / 3)" but got "(aspect-ratio: 1/3)" 2 PASS <ratio> serializes with spaces around the integer. 3 3 -
trunk/Source/WebCore/ChangeLog
r268658 r268659 1 2020-10-18 Emilio Cobos Álvarez <emilio@crisal.io> 2 3 Serialize aspect ratio with spaces around the slash. 4 https://bugs.webkit.org/show_bug.cgi?id=217888 5 6 Reviewed by Sam Weinig. 7 8 Tests: web-platform-tests/css/mediaqueries/aspect-ratio-serialization-expected.txt 9 10 * css/CSSAspectRatioValue.cpp: 11 (WebCore::CSSAspectRatioValue::customCSSText const): Add the spaces. 12 1 13 2020-10-18 Zalan Bujtas <zalan@apple.com> 2 14 -
trunk/Source/WebCore/css/CSSAspectRatioValue.cpp
r254514 r268659 36 36 String CSSAspectRatioValue::customCSSText() const 37 37 { 38 return makeString(m_numeratorValue, '/', m_denominatorValue);38 return makeString(m_numeratorValue, " / ", m_denominatorValue); 39 39 } 40 40
Note: See TracChangeset
for help on using the changeset viewer.