haikuwebkit/LayoutTests/fast/css/all-keyword-inherit.html

18 lines
315 B
HTML
Raw Permalink Normal View History

Implement the "all" CSS property. https://bugs.webkit.org/show_bug.cgi?id=116966 Reviewed by Zalan Bujtas. Source/WebCore: Added new tests in fast/css. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): Don't support "all" from computed style for now. * css/CSSParser.cpp: (WebCore::CSSParser::parseValue): Make sure to bail after checking inherit/unset/initial for all, since you can't actually accept longhand values in the shorthand declarations. (WebCore::CSSParser::parseAnimationProperty): "all" for animations is a special value and should not be confused with the property. It animates everything and does not omit unicode-bidi/direction the way the "all" property does. * css/CSSPropertyNames.in: Add the "all" property to the list and use a special keyword in the Longhands value, "all", that makeprop.pl will look for. This way we don't have to dump every single CSS property into the Longhands expression, since that would be nuts. * css/StyleProperties.cpp: (WebCore::StyleProperties::getPropertyValue): Look for a common value across all properties supported by "all". That way you can get back inherit/initial/unset from it. * css/makeprop.pl: Make the perl script look for "all" in the longhand list, and if it sees it, put every single CSS property into the list for the all shorthand. LayoutTests: Added tests for the "all property, including a variables test! * fast/css/all-keyword-direction-expected.html: Added. * fast/css/all-keyword-direction.html: Added. * fast/css/all-keyword-inherit-expected.html: Added. * fast/css/all-keyword-inherit.html: Added. * fast/css/all-keyword-initial-expected.html: Added. * fast/css/all-keyword-initial.html: Added. * fast/css/all-keyword-unset-expected.html: Added. * fast/css/all-keyword-unset.html: Added. * fast/css/variables/all-keyword-unset-expected.html: Added. * fast/css/variables/all-keyword-unset.html: Added. Canonical link: https://commits.webkit.org/168354@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-16 16:12:03 +00:00
<head>
<style>
html {
font-size: small;
background-color: #F0F0F0;
color: blue;
}
blockquote {
background-color: skyblue;
color: red;
all:inherit;
}
</style>
</head>
<body>
<div>
<blockquote id="quote">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</blockquote> Phasellus eget velit sagittis.