Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Do not allow unitless values for CSS unprefixed perspective property
https://bugs.webkit.org/show_bug.cgi?id=104805 <rdar://problem/77016090> Reviewed by Tim Nguyen. LayoutTests/imported/w3c: * web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: * web-platform-tests/quirks/unitless-length/excluded-properties-001-expected.txt: Source/WebCore: No new tests. This is tested by an existing WPT test: web-platform-tests/quirks/unitless-length/excluded-properties-001.html * animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): * css/CSSProperties.json: * css/parser/CSSPropertyParser.cpp: (WebCore::consumePerspective): (WebCore::CSSPropertyParser::consumePrefixedPerspective): (WebCore::CSSPropertyParser::parseShorthand): * css/parser/CSSPropertyParser.h: * rendering/style/WillChangeData.cpp: (WebCore::WillChangeData::propertyCreatesStackingContext): LayoutTests: * platform/gtk/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * platform/gtk/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: * platform/ios/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: * platform/wpe/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt: * platform/wpe/imported/w3c/web-platform-tests/css/cssom/getComputedStyle-detached-subtree-expected.txt: Canonical link: https://commits.webkit.org/250582@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294224 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
17 changed files
with
109 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
PASS getComputedStyle returns no style for detached element | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 400 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 400 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 400 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 400 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 401 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 401 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 401 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 401 | ||
PASS getComputedStyle returns no style for shadow tree outside of flattened tree | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
PASS getComputedStyle returns no style for detached element | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 399 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 399 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 399 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 399 | ||
PASS getComputedStyle returns no style for shadow tree outside of flattened tree | ||
|
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,8 +1,8 @@ | ||
|
||
PASS getComputedStyle returns no style for detached element | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 402 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 402 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 402 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 402 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 403 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 403 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 403 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 403 | ||
PASS getComputedStyle returns no style for shadow tree outside of flattened tree | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
PASS getComputedStyle returns no style for detached element | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 397 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 397 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 397 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 397 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for element outside the flat tree assert_equals: expected 0 but got 398 | ||
FAIL getComputedStyle returns no style for descendant outside the flat tree assert_equals: expected 0 but got 398 | ||
PASS getComputedStyle returns no style for shadow tree outside of flattened tree | ||
|
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
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