WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Proposed patch
bug-92000-20130611112552.patch (text/plain), 21.89 KB, created by
Bruno Abinader (history only)
on 2013-06-11 08:27:32 PDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Bruno Abinader (history only)
Created:
2013-06-11 08:27:32 PDT
Size:
21.89 KB
patch
obsolete
>Subversion Revision: 151434 >diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog >index 7f0d606917879bb6bc012f09f4eeec2c9705000d..071dd10e832a96a12f8e47e66dde97fabcabf532 100644 >--- a/Source/WebCore/ChangeLog >+++ b/Source/WebCore/ChangeLog >@@ -1,3 +1,33 @@ >+2013-06-11 Bruno de Oliveira Abinader <brunoabinader@gmail.com> >+ >+ [css3-text] Add support for "text-decoration" using CSS3 spec >+ https://bugs.webkit.org/show_bug.cgi?id=92000 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ This patch implements the shorthand version of "text-decoration" >+ property ('-webkit-' vendor prefixed), as specified by the CSS3 text >+ decoration spec: >+ http://dev.w3.org/csswg/css-text-decor-3/#text-decoration-property >+ >+ Test: fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html >+ >+ * css/CSSComputedStyleDeclaration.cpp: >+ (WebCore::ComputedStyleExtractor::propertyValue): >+ (WebCore::ComputedStyleExtractor::getTextDecorationShorthandValue): >+ * css/CSSComputedStyleDeclaration.h: >+ Added computed style shorthand implementation. >+ >+ * css/CSSParser.cpp: >+ (WebCore::CSSParser::parseValue): >+ (WebCore::CSSParser::parseTextDecoration): >+ * css/CSSProperty.cpp: >+ (WebCore::CSSProperty::isInheritedProperty): >+ * css/CSSPropertyNames.in: Added '-webkit-text-decoration'. >+ * css/StylePropertyShorthand.cpp: >+ (WebCore::webkitTextDecorationShorthand): >+ * css/StylePropertyShorthand.h: >+ > 2013-06-11 Christophe Dumez <ch.dumez@sisa.samsung.com> > > Support latest Web IDL named property getters >diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp >index b7adf87f6a52aa865d370468d4a2c689f229552f..b3b096497d410e54456d4085d24634ff0fbd5c94 100644 >--- a/Source/WebCore/css/CSSComputedStyleDeclaration.cpp >+++ b/Source/WebCore/css/CSSComputedStyleDeclaration.cpp >@@ -2190,6 +2190,8 @@ PassRefPtr<CSSValue> ComputedStyleExtractor::propertyValue(CSSPropertyID propert > case CSSPropertyTextDecoration: > return renderTextDecorationFlagsToCSSValue(style->textDecoration()); > #if ENABLE(CSS3_TEXT) >+ case CSSPropertyWebkitTextDecoration: >+ return getTextDecorationShorthandValue(); > case CSSPropertyWebkitTextDecorationLine: > return renderTextDecorationFlagsToCSSValue(style->textDecoration()); > case CSSPropertyWebkitTextDecorationStyle: >@@ -3122,4 +3124,15 @@ PassRefPtr<CSSValueList> ComputedStyleExtractor::getBackgroundShorthandValue() c > return list.release(); > } > >+#if ENABLE(CSS3_TEXT) >+PassRefPtr<CSSValueList> ComputedStyleExtractor::getTextDecorationShorthandValue() const >+{ >+ static const CSSPropertyID properties[3] = { CSSPropertyWebkitTextDecorationLine, CSSPropertyWebkitTextDecorationStyle, CSSPropertyWebkitTextDecorationColor }; >+ >+ RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); >+ list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShorthand(properties, WTF_ARRAY_LENGTH(properties)))); >+ return list.release(); >+} >+#endif // CSS3_TEXT >+ > } // namespace WebCore >diff --git a/Source/WebCore/css/CSSComputedStyleDeclaration.h b/Source/WebCore/css/CSSComputedStyleDeclaration.h >index 17f04ccec76eba19fe49d8fa8738def7817934f4..4af6e094d1ce446c88e3cb24f21a75b10101f295 100644 >--- a/Source/WebCore/css/CSSComputedStyleDeclaration.h >+++ b/Source/WebCore/css/CSSComputedStyleDeclaration.h >@@ -82,6 +82,9 @@ private: > PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const StylePropertyShorthand&) const; > PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePropertyShorthand&) const; > PassRefPtr<CSSValueList> getBackgroundShorthandValue() const; >+#if ENABLE(CSS3_TEXT) >+ PassRefPtr<CSSValueList> getTextDecorationShorthandValue() const; >+#endif // CSS3_TEXT > PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePropertyShorthand&) const; > > RefPtr<Node> m_node; >diff --git a/Source/WebCore/css/CSSParser.cpp b/Source/WebCore/css/CSSParser.cpp >index 66dd5cf03f5fd2e7c68feb320998a5f63a92dfd9..32fc09f7424e4806df2c9338cecf101e3ed62636 100644 >--- a/Source/WebCore/css/CSSParser.cpp >+++ b/Source/WebCore/css/CSSParser.cpp >@@ -7,6 +7,7 @@ > * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) > * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. > * Copyright (C) 2012 Intel Corporation. All rights reserved. >+ * Copyright (C) 2012, 2013 basysKom GmbH. All rights reserved. > * > * This library is free software; you can redistribute it and/or > * modify it under the terms of the GNU Library General Public >@@ -2318,6 +2319,10 @@ bool CSSParser::parseValue(CSSPropertyID propId, bool important) > return parseTextDecoration(propId, important); > > #if ENABLE(CSS3_TEXT) >+ case CSSPropertyWebkitTextDecoration: >+ // [ <text-decoration-line> || <text-decoration-style> || <text-decoration-color> ] | inherit >+ return parseShorthand(CSSPropertyWebkitTextDecoration, webkitTextDecorationShorthand(), important); >+ > case CSSPropertyWebkitTextDecorationStyle: > // solid | double | dotted | dashed | wavy > if (id == CSSValueSolid || id == CSSValueDouble || id == CSSValueDotted || id == CSSValueDashed || id == CSSValueWavy) >@@ -9397,7 +9402,7 @@ void CSSParser::addTextDecorationProperty(CSSPropertyID propId, PassRefPtr<CSSVa > bool CSSParser::parseTextDecoration(CSSPropertyID propId, bool important) > { > CSSParserValue* value = m_valueList->current(); >- if (value->id == CSSValueNone) { >+ if (value && value->id == CSSValueNone) { > addTextDecorationProperty(propId, cssValuePool().createIdentifierValue(CSSValueNone), important); > m_valueList->next(); > return true; >@@ -9421,7 +9426,8 @@ bool CSSParser::parseTextDecoration(CSSPropertyID propId, bool important) > value = m_valueList->next(); > } > >- if (list->length() && isValid) { >+ // Values are either valid or in shorthand scope. >+ if (list->length() && (isValid || inShorthand())) { > addTextDecorationProperty(propId, list.release(), important); > return true; > } >diff --git a/Source/WebCore/css/CSSProperty.cpp b/Source/WebCore/css/CSSProperty.cpp >index c7c562e5caf73d256ef883923c9914291bf1963f..223e02d17c84269237e6215352ca2e5f9579f097 100644 >--- a/Source/WebCore/css/CSSProperty.cpp >+++ b/Source/WebCore/css/CSSProperty.cpp >@@ -329,6 +329,7 @@ bool CSSProperty::isInheritedProperty(CSSPropertyID propertyID) > case CSSPropertyWebkitRubyPosition: > case CSSPropertyWebkitTextCombine: > #if ENABLE(CSS3_TEXT) >+ case CSSPropertyWebkitTextDecoration: > case CSSPropertyWebkitTextDecorationLine: > case CSSPropertyWebkitTextAlignLast: > case CSSPropertyWebkitTextJustify: >diff --git a/Source/WebCore/css/CSSPropertyNames.in b/Source/WebCore/css/CSSPropertyNames.in >index c908483223f60c1850e1703da963df79abc7b4b2..dfdc646526d7c91f200f24ae6ea7bdefe34611f8 100644 >--- a/Source/WebCore/css/CSSPropertyNames.in >+++ b/Source/WebCore/css/CSSPropertyNames.in >@@ -378,6 +378,7 @@ z-index > -webkit-text-combine > -epub-text-combine = -webkit-text-combine > #if defined(ENABLE_CSS3_TEXT) && ENABLE_CSS3_TEXT >+-webkit-text-decoration > -webkit-text-decoration-line > -webkit-text-decoration-style > -webkit-text-decoration-color >diff --git a/Source/WebCore/css/StylePropertyShorthand.cpp b/Source/WebCore/css/StylePropertyShorthand.cpp >index ca4e8b2fa03a99a26ebdf2759eea95c3a4f6c6a3..11ed03b9a96a85572660318a8ea5615b709f0157 100644 >--- a/Source/WebCore/css/StylePropertyShorthand.cpp >+++ b/Source/WebCore/css/StylePropertyShorthand.cpp >@@ -440,6 +440,19 @@ const StylePropertyShorthand& webkitTextEmphasisShorthand() > return webkitTextEmphasisLonghands; > } > >+#if ENABLE(CSS3_TEXT) >+const StylePropertyShorthand& webkitTextDecorationShorthand() >+{ >+ static const CSSPropertyID textDecorationProperties[] = { >+ CSSPropertyWebkitTextDecorationLine, >+ CSSPropertyWebkitTextDecorationStyle, >+ CSSPropertyWebkitTextDecorationColor >+ }; >+ DEFINE_STATIC_LOCAL(StylePropertyShorthand, webkitTextDecorationLonghands, (textDecorationProperties, WTF_ARRAY_LENGTH(textDecorationProperties))); >+ return webkitTextDecorationLonghands; >+} >+#endif // CSS3_TEXT >+ > const StylePropertyShorthand& webkitTextStrokeShorthand() > { > static const CSSPropertyID textStrokeProperties[] = { CSSPropertyWebkitTextStrokeWidth, CSSPropertyWebkitTextStrokeColor }; >diff --git a/Source/WebCore/css/StylePropertyShorthand.h b/Source/WebCore/css/StylePropertyShorthand.h >index 2ae93563a8f57c5e1403cd7001cc6f9d3619f7b6..4df7541050c686a54083b85ab42fb40fb53b9dcc 100644 >--- a/Source/WebCore/css/StylePropertyShorthand.h >+++ b/Source/WebCore/css/StylePropertyShorthand.h >@@ -99,6 +99,9 @@ const StylePropertyShorthand& webkitMaskShorthand(); > const StylePropertyShorthand& webkitMaskPositionShorthand(); > const StylePropertyShorthand& webkitMaskRepeatShorthand(); > const StylePropertyShorthand& webkitTextEmphasisShorthand(); >+#if ENABLE(CSS3_TEXT) >+const StylePropertyShorthand& webkitTextDecorationShorthand(); >+#endif // CSS3_TEXT > const StylePropertyShorthand& webkitTextStrokeShorthand(); > const StylePropertyShorthand& webkitTransitionShorthand(); > const StylePropertyShorthand& webkitTransformOriginShorthand(); >diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog >index a03357f106b43988b0e7b1174508f7295a86354c..73dcc86e14056ace607a1a37651c13264dc1e602 100644 >--- a/LayoutTests/ChangeLog >+++ b/LayoutTests/ChangeLog >@@ -1,3 +1,17 @@ >+2013-06-11 Bruno de Oliveira Abinader <brunoabinader@gmail.com> >+ >+ [css3-text] Add support for "text-decoration" using CSS3 spec >+ https://bugs.webkit.org/show_bug.cgi?id=92000 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Added computed style test for '-webkit-text-decoration'. >+ >+ * fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt: Added. >+ * fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html: Added. >+ * fast/css3-text/css3-text-decoration/getComputedStyle/script-tests/getComputedStyle-text-decoration-shorthand.js: Added. >+ (checkComputedStyleValue): Added. >+ > 2013-06-11 Mihnea Ovidenie <mihnea@adobe.com> > > [Qt][EFL][GTK]fast/regions/overflow-size-change-with-stacking-context-rtl.html fails after r151202 >diff --git a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt >new file mode 100644 >index 0000000000000000000000000000000000000000..ff833d8883c742ee3caf36275eee9db96a56a7c4 >--- /dev/null >+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand-expected.txt >@@ -0,0 +1,56 @@ >+Test to make sure -webkit-text-decoration property is backwards compatible with CSS 2.1 and CSS 3 shorthand. >+ >+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". >+ >+ >+Initial values: >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration') is null >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText is 'none solid rgb(0, 0, 0)' >+ >+CSS2.1 backwards compatibility ("-webkit-text-decoration: underline overline line-through blink;"): >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-line').toString() is '[object CSSValueList]' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline overline line-through blink' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-style').toString() is '[object CSSValue]' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'initial' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSValue]' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText is 'underline overline line-through solid rgb(0, 0, 0)' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline overline line-through' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').toString() is '[object CSSPrimitiveValue]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'solid' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString() is '[object CSSPrimitiveValue]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' >+PASS checkComputedStyleValue() is true >+ >+CSS3 Shorthand ("-webkit-text-decoration: underline overline line-through blink dashed red;"): >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration') is null >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline overline line-through blink' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'dashed' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'red' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText is 'underline overline line-through dashed rgb(255, 0, 0)' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline overline line-through' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'dashed' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(255, 0, 0)' >+PASS checkComputedStyleValue() is true >+ >+Omitting text decoration color and/or style fallbacks to their initial values ("-webkit-text-decoration: underline;"): >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration') is null >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'initial' >+PASS e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'initial' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString() is '[object CSSValueList]' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText is 'underline solid rgb(0, 0, 0)' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText is 'underline' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText is 'solid' >+PASS computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText is 'rgb(0, 0, 0)' >+PASS checkComputedStyleValue() is true >+ >+PASS successfullyParsed is true >+ >+TEST COMPLETE >+ >diff --git a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html >new file mode 100644 >index 0000000000000000000000000000000000000000..c0110adf66ee4847b1f2d3db3747a08aa7eeb418 >--- /dev/null >+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/getComputedStyle-text-decoration-shorthand.html >@@ -0,0 +1,10 @@ >+<!DOCTYPE html> >+<html> >+<head> >+<script src="../../../js/resources/js-test-pre.js"></script> >+</head> >+<body> >+<script src="script-tests/getComputedStyle-text-decoration-shorthand.js"></script> >+<script src="../../../js/resources/js-test-post.js"></script> >+</body> >+</html> >diff --git a/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/script-tests/getComputedStyle-text-decoration-shorthand.js b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/script-tests/getComputedStyle-text-decoration-shorthand.js >new file mode 100644 >index 0000000000000000000000000000000000000000..f6c1ba953fdeac4c8ead8f352d6795b126b7f689 >--- /dev/null >+++ b/LayoutTests/fast/css3-text/css3-text-decoration/getComputedStyle/script-tests/getComputedStyle-text-decoration-shorthand.js >@@ -0,0 +1,80 @@ >+description("Test to make sure -webkit-text-decoration property is backwards compatible with CSS 2.1 and CSS 3 shorthand.") >+ >+var testContainer = document.createElement("div"); >+testContainer.contentEditable = true; >+document.body.appendChild(testContainer); >+ >+testContainer.innerHTML = '<div id="test">hello</div>'; >+ >+debug('Initial values:'); >+var e = document.getElementById('test'); >+shouldBeNull("e.style.getPropertyCSSValue('-webkit-text-decoration')"); >+ >+var computedStyle = window.getComputedStyle(e, null); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText", "'none solid rgb(0, 0, 0)'"); >+ >+debug(''); >+ >+function checkComputedStyleValue() { >+ var before = window.getComputedStyle(e, null).getPropertyValue('-webkit-text-decoration'); >+ e.style.webkitTextDecoration = 'none'; >+ e.style.webkitTextDecoration = before; >+ return (window.getComputedStyle(e, null).getPropertyValue('-webkit-text-decoration') == before); >+} >+ >+debug('CSS2.1 backwards compatibility ("-webkit-text-decoration: underline overline line-through blink;"):'); >+e.style.webkitTextDecoration = "underline overline line-through blink"; >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-line').toString()", "'[object CSSValueList]'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline overline line-through blink'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-style').toString()", "'[object CSSValue]'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'initial'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-color').toString()", "'[object CSSValue]'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'initial'"); >+ >+computedStyle = window.getComputedStyle(e, null); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText", "'underline overline line-through solid rgb(0, 0, 0)'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline overline line-through'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').toString()", "'[object CSSPrimitiveValue]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'solid'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').toString()", "'[object CSSPrimitiveValue]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'rgb(0, 0, 0)'"); >+shouldBe("checkComputedStyleValue()", "true"); >+debug(''); >+ >+debug('CSS3 Shorthand ("-webkit-text-decoration: underline overline line-through blink dashed red;"):'); >+e.style.webkitTextDecoration = "underline overline line-through blink dashed red"; >+shouldBeNull("e.style.getPropertyCSSValue('-webkit-text-decoration')"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline overline line-through blink'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'dashed'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'red'"); >+ >+computedStyle = window.getComputedStyle(e, null); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText", "'underline overline line-through dashed rgb(255, 0, 0)'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline overline line-through'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'dashed'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'rgb(255, 0, 0)'"); >+shouldBe("checkComputedStyleValue()", "true"); >+debug(''); >+ >+debug('Omitting text decoration color and/or style fallbacks to their initial values ("-webkit-text-decoration: underline;"):'); >+e.style.webkitTextDecoration = "underline"; >+shouldBeNull("e.style.getPropertyCSSValue('-webkit-text-decoration')"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'initial'"); >+shouldBe("e.style.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'initial'"); >+ >+computedStyle = window.getComputedStyle(e, null); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').toString()", "'[object CSSValueList]'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration').cssText", "'underline solid rgb(0, 0, 0)'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-line').cssText", "'underline'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-style').cssText", "'solid'"); >+shouldBe("computedStyle.getPropertyCSSValue('-webkit-text-decoration-color').cssText", "'rgb(0, 0, 0)'"); >+shouldBe("checkComputedStyleValue()", "true"); >+debug(''); >+ >+document.body.removeChild(testContainer);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 92000
:
153811
|
155021
|
155146
|
157234
|
158833
|
159137
|
159170
|
161695
|
161702
|
170667
|
170972
|
171241
|
179064
|
193065
|
204163
|
204164
|
204165
|
204166
|
204338
|
206613
|
206619
|
209114