Changeset 109884 in webkit
- Timestamp:
- Mar 6, 2012 1:43:27 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r109882 r109884 1 2012-03-06 Roland Steiner <rolandsteiner@chromium.org> 2 3 :scope should behave as :root outside scoped style sheet 4 https://bugs.webkit.org/show_bug.cgi?id=80389 5 6 Update test with :scope in global style sheet 7 8 Reviewed by Antti Koivisto. 9 10 * fast/css/style-scoped/scope-pseudo-expected.txt: 11 * fast/css/style-scoped/scope-pseudo.html: 12 1 13 2012-03-05 Vsevolod Vlasov <vsevik@chromium.org> 2 14 -
trunk/LayoutTests/fast/css/style-scoped/scope-pseudo-expected.txt
r109573 r109884 9 9 Text 10 10 --- COMPUTED STYLES --- 11 <html> background: rgb(255, 255, 0) 11 12 outer: rgb(0, 0, 0) 12 13 sibling1: rgb(0, 0, 0) -
trunk/LayoutTests/fast/css/style-scoped/scope-pseudo.html
r109573 r109884 21 21 log('--- COMPUTED STYLES ---'); 22 22 23 log('<html> background: ' + document.defaultView.getComputedStyle(document.documentElement, null).getPropertyValue('background-color')); 23 24 test('outer'); 24 25 test('sibling1'); … … 37 38 <style type="text/css"> 38 39 body { color: black; } 40 :scope { background-color: yellow; } 39 41 </style> 40 42 </head> -
trunk/Source/WebCore/ChangeLog
r109882 r109884 1 2012-03-06 Roland Steiner <rolandsteiner@chromium.org> 2 3 :scope should behave as :root outside scoped style sheet 4 https://bugs.webkit.org/show_bug.cgi?id=80389 5 6 Fall through to :root implementation if no scope is used. 7 8 Reviewed by Antti Koivisto. 9 10 Test: fast/css/style-scoped/scope-pseudo.html 11 12 * css/SelectorChecker.cpp: 13 (WebCore::SelectorChecker::checkOneSelector): 14 1 15 2012-03-05 Vsevolod Vlasov <vsevik@chromium.org> 2 16 -
trunk/Source/WebCore/css/SelectorChecker.cpp
r109573 r109884 982 982 } 983 983 break; 984 case CSSSelector::PseudoScope:985 return element == context.scope;986 984 case CSSSelector::PseudoTarget: 987 985 if (element == element->document()->cssTarget()) … … 1111 1109 break; 1112 1110 } 1111 case CSSSelector::PseudoScope: 1112 if (context.scope) 1113 return element == context.scope; 1114 // If there is no scope, :scope should behave as :root -> fall through 1113 1115 case CSSSelector::PseudoRoot: 1114 1116 if (element == element->document()->documentElement())
Note: See TracChangeset
for help on using the changeset viewer.