Changeset 273068 in webkit
- Timestamp:
- Feb 18, 2021 12:38:17 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r273065 r273068 1 2021-02-18 Rob Buis <rbuis@igalia.com> 2 3 Treat <ratio> that ends with forward slash as invalid 4 https://bugs.webkit.org/show_bug.cgi?id=221978 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 * web-platform-tests/css/css-sizing/aspect-ratio/parsing/aspect-ratio-invalid-expected.txt: 9 * web-platform-tests/css/css-sizing/aspect-ratio/parsing/aspect-ratio-invalid.html: 10 1 11 2021-02-17 Tyler Wilcock <twilco.o@protonmail.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/parsing/aspect-ratio-invalid-expected.txt
r272315 r273068 8 8 PASS e.style['aspect-ratio'] = "invalid 1.5" should not set the property value 9 9 PASS e.style['aspect-ratio'] = "auto 1 / 1 auto" should not set the property value 10 PASS e.style['aspect-ratio'] = "16 /" should not set the property value 11 PASS e.style['aspect-ratio'] = "auto 16 /" should not set the property value 12 PASS e.style['aspect-ratio'] = "16 / auto" should not set the property value 10 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/parsing/aspect-ratio-invalid.html
r272315 r273068 17 17 test_invalid_value("aspect-ratio", "invalid 1.5"); 18 18 test_invalid_value("aspect-ratio", "auto 1 / 1 auto"); 19 test_invalid_value("aspect-ratio", "16 /"); 20 test_invalid_value("aspect-ratio", "auto 16 /"); 21 test_invalid_value("aspect-ratio", "16 / auto"); 19 22 </script> -
trunk/Source/WebCore/ChangeLog
r273067 r273068 1 2021-02-18 Rob Buis <rbuis@igalia.com> 2 3 Treat <ratio> that ends with forward slash as invalid 4 https://bugs.webkit.org/show_bug.cgi?id=221978 5 6 Reviewed by Manuel Rego Casasnovas. 7 8 Treat <ratio> that ends with forward slash as invalid: 9 https://drafts.csswg.org/css-values-4/#ratio-value 10 11 Test: imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/parsing/aspect-ratio-invalid.html 12 13 * css/parser/CSSPropertyParser.cpp: 14 (WebCore::consumeAspectRatio): 15 1 16 2021-02-18 Antoine Quint <graouts@webkit.org> 2 17 -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r272870 r273068 3926 3926 3927 3927 auto rightValue = consumeNumber(range, ValueRangeNonNegative); 3928 if ( rightValue && !slashSeen)3928 if ((rightValue && !slashSeen) || (!rightValue && slashSeen)) 3929 3929 return nullptr; 3930 3930 if (!slashSeen && !rightValue) // A missing right-hand is treated as 1.
Note: See TracChangeset
for help on using the changeset viewer.