Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Wrong getComputedStyle behavior for pseudo-elements for layout-depend…
…ent properties. https://bugs.webkit.org/show_bug.cgi?id=175936 Patch by Emilio Cobos Álvarez <emilio@crisal.io> on 2017-09-01 Reviewed by Antti Koivisto. LayoutTests/imported/w3c: * web-platform-tests/cssom/getComputedStyle-pseudo-expected.txt: * web-platform-tests/cssom/getComputedStyle-pseudo.html: Sync test with upstream. Source/WebCore: Before this patch we may wrongly end up using the wrong renderer to resolve this. Tests: imported/w3c/web-platform-tests/cssom/getComputedStyle-pseudo.html * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::styledElement const): (WebCore::ComputedStyleExtractor::styledRenderer const): (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSComputedStyleDeclaration.h: Canonical link: https://commits.webkit.org/192901@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@221501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
82 additions
and 8 deletions.
- +10 −0 LayoutTests/imported/w3c/ChangeLog
- +2 −0 LayoutTests/imported/w3c/web-platform-tests/cssom/getComputedStyle-pseudo-expected.txt
- +27 −0 LayoutTests/imported/w3c/web-platform-tests/cssom/getComputedStyle-pseudo.html
- +18 −0 Source/WebCore/ChangeLog
- +15 −4 Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- +10 −4 Source/WebCore/css/CSSComputedStyleDeclaration.h
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
@@ -1,4 +1,6 @@ | ||
|
||
PASS Resolution of width is correct for ::before and ::after pseudo-elements | ||
FAIL Resolution of width is correct for ::before and ::after pseudo-elements of display: contents elements assert_equals: expected "50px" but got "auto" | ||
FAIL Resolution of nonexistent pseudo-element styles assert_equals: Nonexistent :before pseudo-element shouldn't claim to have the same style as the originating element expected "static" but got "relative" | ||
FAIL Resolution of pseudo-element styles in display: none elements assert_equals: Pseudo-styles of display: none elements should be correct expected "\"Foo\"" but got "" | ||
|
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