Changeset 278933 in webkit
- Timestamp:
- Jun 16, 2021, 7:37:30 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r278932 r278933 1 2021-06-16 Tim Nguyen <ntim@apple.com> 2 3 Make CSS.supports() return false for internal CSS properties 4 https://bugs.webkit.org/show_bug.cgi?id=224930 5 6 Reviewed by Antti Koivisto. 7 8 Test: LayoutTests/fast/backgrounds/background-repeat-x-y-parse.html 9 10 Examples that are now rejected: 11 12 CSS.supports("background-repeat-x: inherit") 13 CSS.supports("background-repeat-x", "inherit") 14 CSS.supports("background-repeat-y: inherit") 15 CSS.supports("background-repeat-y", "inherit") 16 17 * fast/backgrounds/background-repeat-x-y-parse-expected.txt: 18 * fast/backgrounds/background-repeat-x-y-parse.html: 19 * fast/css/webkit-mask-crash-implicit-expected.txt: 20 * fast/css/webkit-mask-crash-implicit.html: 21 1 22 2021-06-16 Toshio Ogasawara <toshio.ogasawara@access-company.com> 2 23 -
trunk/LayoutTests/fast/backgrounds/background-repeat-x-y-parse-expected.txt
r267644 r278933 1 This test checks that background-repeat-x/y are not parsed 1 This test checks that background-repeat-x/y are not parsed or supported 2 2 3 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". … … 8 8 PASS window.getComputedStyle(document.getElementById('test3')).getPropertyValue('background-repeat') is "repeat-y" 9 9 PASS window.getComputedStyle(document.getElementById('test4')).getPropertyValue('background-repeat') is "repeat-x" 10 PASS CSS.supports('background-repeat-x: inherit') is false 11 PASS CSS.supports('background-repeat-x', 'inherit') is false 12 PASS CSS.supports('background-repeat-y: inherit') is false 13 PASS CSS.supports('background-repeat-y', 'inherit') is false 10 14 PASS successfullyParsed is true 11 15 -
trunk/LayoutTests/fast/backgrounds/background-repeat-x-y-parse.html
r211152 r278933 20 20 <div id="test4" class="test" style="background-repeat: repeat-x; background-repeat-x: no-repeat;"></div> 21 21 <script> 22 description("This test checks that background-repeat-x/y are not parsed ");22 description("This test checks that background-repeat-x/y are not parsed or supported"); 23 23 24 24 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test1')).getPropertyValue('background-repeat')", "repeat"); … … 26 26 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test3')).getPropertyValue('background-repeat')", "repeat-y"); 27 27 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test4')).getPropertyValue('background-repeat')", "repeat-x"); 28 29 shouldBeFalse("CSS.supports('background-repeat-x: inherit')"); 30 shouldBeFalse("CSS.supports('background-repeat-x', 'inherit')"); 31 shouldBeFalse("CSS.supports('background-repeat-y: inherit')"); 32 shouldBeFalse("CSS.supports('background-repeat-y', 'inherit')"); 28 33 </script> 29 34 <script src="../../resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/css/webkit-mask-crash-implicit-expected.txt
r200357 r278933 1 PASS document.styleSheets[1].rules[0].style.cssText is "-webkit-mask-repeat-x: repeat; -webkit-mask-repeat-y: inherit;"1 PASS document.styleSheets[1].rules[0].style.cssText is "-webkit-mask-repeat-x: repeat; -webkit-mask-repeat-y: no-repeat;" 2 2 PASS document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask') is "" 3 PASS document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask-repeat') is " inherit"3 PASS document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask-repeat') is "repeat-x" 4 4 -
trunk/LayoutTests/fast/css/webkit-mask-crash-implicit.html
r200357 r278933 10 10 if (window.internals) 11 11 testRunner.dumpAsText(); 12 shouldBeEqualToString("document.styleSheets[1].rules[0].style.cssText", "-webkit-mask-repeat-x: repeat; -webkit-mask-repeat-y: inherit;");12 shouldBeEqualToString("document.styleSheets[1].rules[0].style.cssText", "-webkit-mask-repeat-x: repeat; -webkit-mask-repeat-y: no-repeat;"); 13 13 shouldBeEqualToString("document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask')", ""); 14 shouldBeEqualToString("document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask-repeat')", " inherit");14 shouldBeEqualToString("document.styleSheets[1].rules[0].style.getPropertyValue('-webkit-mask-repeat')", "repeat-x"); 15 15 </script> 16 16 </head> -
trunk/Source/WebCore/ChangeLog
r278932 r278933 1 2021-06-16 Tim Nguyen <ntim@apple.com> 2 3 Make CSS.supports() return false for internal CSS properties 4 https://bugs.webkit.org/show_bug.cgi?id=224930 5 6 Reviewed by Antti Koivisto. 7 8 Test: LayoutTests/fast/backgrounds/background-repeat-x-y-parse.html 9 10 Examples that are now rejected: 11 12 CSS.supports("background-repeat-x: inherit") 13 CSS.supports("background-repeat-x", "inherit") 14 CSS.supports("background-repeat-y: inherit") 15 CSS.supports("background-repeat-y", "inherit") 16 17 * css/DOMCSSNamespace.cpp: 18 (WebCore::DOMCSSNamespace::supports): 19 * css/parser/CSSParserImpl.cpp: 20 (WebCore::CSSParserImpl::consumeDeclaration): 21 1 22 2021-06-16 Toshio Ogasawara <toshio.ogasawara@access-company.com> 2 23 -
trunk/Source/WebCore/css/DOMCSSNamespace.cpp
r274520 r278933 64 64 return false; 65 65 66 if (isInternalCSSProperty(propertyID)) 67 return false; 68 66 69 if (propertyID == CSSPropertyInvalid) 67 70 return false; -
trunk/Source/WebCore/css/parser/CSSParserImpl.cpp
r278185 r278933 811 811 return; // Parse error 812 812 813 if (m_context.isPropertyRuntimeDisabled(propertyID) )813 if (m_context.isPropertyRuntimeDisabled(propertyID) || isInternalCSSProperty(propertyID)) 814 814 propertyID = CSSPropertyInvalid; 815 815
Note:
See TracChangeset
for help on using the changeset viewer.