Changeset 240334 in webkit
- Timestamp:
- Jan 23, 2019 7:04:50 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r240331 r240334 1 2019-01-23 Oriol Brufau <obrufau@igalia.com> 2 3 [css-logical] Implement flow-relative inset properties 4 https://bugs.webkit.org/show_bug.cgi?id=189441 5 6 Reviewed by Dean Jackson. 7 8 Check that the new CSS properties are disabled behind runtime flags 9 and are not exposed. 10 11 * webexposed/css-properties-behind-flags-expected.txt: 12 * webexposed/css-properties-behind-flags.html: 13 1 14 2019-01-23 Rob Buis <rbuis@igalia.com> 2 15 -
trunk/LayoutTests/imported/w3c/ChangeLog
r240333 r240334 1 2019-01-23 Oriol Brufau <obrufau@igalia.com> 2 3 [css-logical] Implement flow-relative inset properties 4 https://bugs.webkit.org/show_bug.cgi?id=189441 5 6 Reviewed by Dean Jackson. 7 8 Enable the CSSLogicalEnabled flag in the test for logical insets, and 9 update its expectations. It still has some failures because sideways 10 writing modes have not been implemented yet 11 (https://bugs.webkit.org/show_bug.cgi?id=166941). 12 13 * web-platform-tests/css/css-logical/logical-box-inset-expected.txt: 14 * web-platform-tests/css/css-logical/logical-box-inset.html: 15 1 16 2019-01-23 Oriol Brufau <obrufau@igalia.com> 2 17 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-inset-expected.txt
r240251 r240334 1 1 2 FAIL Test that logical inset-* properties are supported. assert_equals: logical properties in inline style, inset-inline-start expected "1px" but got "" 3 FAIL Test that inset-inline shorthand sets longhands and serializes correctly. assert_equals: shorthand in inline style, inset-inline expected "1px 2px" but got "" 4 FAIL Test that inset-block shorthand sets longhands and serializes correctly. assert_equals: shorthand in inline style, inset-block expected "1px 2px" but got "" 5 FAIL Test that inset shorthand sets longhands and serializes correctly. assert_equals: shorthand in inline style, inset expected "1px 2px 3px 4px" but got "" 6 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: horizontal-tb; direction: ltr; ', inset-inline-start expected "1px" but got "" 7 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: horizontal-tb; direction: ltr; ', inset-inline-start expected "1px" but got "" 8 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: horizontal-tb; direction: ltr; ', left expected "5px" but got "1px" 9 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: horizontal-tb; direction: ltr; ', left expected "5px" but got "1px" 10 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: horizontal-tb; direction: rtl; ', inset-inline-start expected "1px" but got "" 11 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: horizontal-tb; direction: rtl; ', inset-inline-start expected "1px" but got "" 12 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: horizontal-tb; direction: rtl; ', inset-inline-end expected "1px" but got "" 13 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: horizontal-tb; direction: rtl; ', inset-inline-end expected "1px" but got "" 14 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-rl; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: vertical-rl; direction: rtl; ', inset-inline-start expected "1px" but got "" 15 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-rl; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: vertical-rl; direction: rtl; ', inset-inline-start expected "1px" but got "" 16 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: vertical-rl; direction: rtl; ', inset-block-end expected "1px" but got "" 17 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: vertical-rl; direction: rtl; ', inset-block-end expected "1px" but got "" 18 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: rtl; ', inset-inline-start expected "1px" but got ""19 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: rtl; ', inset-inline-start expected "1px" but got ""20 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-rl; direction: rtl; ', inset-block-end expected "1px" but got " "21 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-rl; direction: rtl; ', inset-block-end expected "1px" but got " "22 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-rl; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: vertical-rl; direction: ltr; ', inset-inline-start expected "1px" but got "" 23 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-rl; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: vertical-rl; direction: ltr; ', inset-inline-start expected "1px" but got "" 24 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: vertical-rl; direction: ltr; ', inset-block-end expected "1px" but got "" 25 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: vertical-rl; direction: ltr; ', inset-block-end expected "1px" but got "" 26 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: ltr; ', inset-inline-start expected "1px" but got ""27 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: ltr; ', inset-inline-start expected "1px" but got ""28 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-rl; direction: ltr; ', inset-block-end expected "1px" but got ""29 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-rl; direction: ltr; ', inset-block-end expected "1px" but got ""30 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: vertical-lr; direction: rtl; ', inset-inline-start expected "1px" but got "" 31 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: vertical-lr; direction: rtl; ', inset-inline-start expected "1px" but got "" 32 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: vertical-lr; direction: rtl; ', inset-block-start expected "1px" but got "" 33 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: vertical-lr; direction: rtl; ', inset-block-start expected "1px" but got "" 34 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: ltr; ', inset-inline-start expected "1px" but got ""35 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: ltr; ', inset-inline-start expected "1px" but got ""36 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: ltr; ', inset-block-start expected "1px" but got ""37 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-lr; direction: ltr; ', inset-block-start expected "1px" but got ""38 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-lr; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: vertical-lr; direction: ltr; ', inset-inline-start expected "1px" but got "" 39 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-lr; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: vertical-lr; direction: ltr; ', inset-inline-start expected "1px" but got "" 40 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: vertical-lr; direction: ltr; ', inset-block-start expected "1px" but got "" 41 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: vertical-lr; direction: ltr; ', inset-block-start expected "1px" but got "" 42 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', inset-inline-start expected "1px" but got ""43 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', inset-inline-start expected "1px" but got ""44 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got " "45 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got " "2 PASS Test that logical inset-* properties are supported. 3 PASS Test that inset-inline shorthand sets longhands and serializes correctly. 4 PASS Test that inset-block shorthand sets longhands and serializes correctly. 5 PASS Test that inset shorthand sets longhands and serializes correctly. 6 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: ltr; '. 7 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: ltr; '. 8 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '. 9 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: ltr; '. 10 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: horizontal-tb; direction: rtl; '. 11 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: horizontal-tb; direction: rtl; '. 12 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: rtl; '. 13 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: horizontal-tb; direction: rtl; '. 14 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-rl; direction: rtl; '. 15 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-rl; direction: rtl; '. 16 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: rtl; '. 17 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: rtl; '. 18 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: rtl; ', bottom expected "1px" but got "4px" 19 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: rtl; ', bottom expected "1px" but got "0px" 20 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-rl; direction: rtl; ', inset-block-end expected "1px" but got "4px" 21 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-rl; direction: rtl; ', inset-block-end expected "1px" but got "4px" 22 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-rl; direction: ltr; '. 23 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-rl; direction: ltr; '. 24 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: ltr; '. 25 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-rl; direction: ltr; '. 26 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: ltr; ', top expected "1px" but got "3px" 27 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-rl; direction: ltr; ', top expected "1px" but got "0px" 28 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-rl; direction: ltr; ', left expected "1px" but got "5px" 29 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-rl; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-rl; direction: ltr; ', left expected "1px" but got "5px" 30 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-lr; direction: rtl; '. 31 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-lr; direction: rtl; '. 32 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: rtl; '. 33 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: rtl; '. 34 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: ltr; ', bottom expected "1px" but got "4px" 35 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: ltr; ', bottom expected "1px" but got "0px" 36 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: ltr; ', left expected "1px" but got "5px" 37 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: ltr; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-lr; direction: ltr; ', left expected "1px" but got "5px" 38 PASS Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: vertical-lr; direction: ltr; '. 39 PASS Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: vertical-lr; direction: ltr; '. 40 PASS Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: ltr; '. 41 PASS Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: vertical-lr; direction: ltr; '. 42 FAIL Test that logical inset-* properties share computed values with their physical associates, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: logical properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', top expected "1px" but got "3px" 43 FAIL Test that inset-* shorthands set the computed value of both logical and physical longhands, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: shorthand properties on one declaration, writing mode properties on another, 'writing-mode: sideways-lr; direction: rtl; ', top expected "1px" but got "0px" 44 FAIL Test that inset-* properties honor order of appearance when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start' last on single declaration, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got "3px" 45 FAIL Test that inset-* properties honor selector specificty when both logical and physical associates are declared, with 'writing-mode: sideways-lr; direction: rtl; '. assert_equals: 'inset-inline-start', two declarations, 'writing-mode: sideways-lr; direction: rtl; ', inset-block-start expected "1px" but got "3px" 46 46 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-logical/logical-box-inset.html
r240251 r240334 1 <!DOCTYPE html> 1 <!DOCTYPE html> <!-- webkit-test-runner [ internal:CSSLogicalEnabled=true ] --> 2 2 <meta charset="utf-8" /> 3 3 <title>CSS Logical Properties: Flow-Relative Offsets</title> -
trunk/LayoutTests/webexposed/css-properties-behind-flags-expected.txt
r240251 r240334 8 8 PASS border-inline-style is not exposed 9 9 PASS border-inline-color is not exposed 10 PASS inset is not exposed 11 PASS inset-block is not exposed 12 PASS inset-block-start is not exposed 13 PASS inset-block-end is not exposed 14 PASS inset-inline is not exposed 15 PASS inset-inline-start is not exposed 16 PASS inset-inline-end is not exposed 10 17 PASS margin-block is not exposed 11 18 PASS margin-inline is not exposed -
trunk/LayoutTests/webexposed/css-properties-behind-flags.html
r240251 r240334 13 13 "border-inline-style", 14 14 "border-inline-color", 15 "inset", 16 "inset-block", 17 "inset-block-start", 18 "inset-block-end", 19 "inset-inline", 20 "inset-inline-start", 21 "inset-inline-end", 15 22 "margin-block", 16 23 "margin-inline", -
trunk/Source/WebCore/ChangeLog
r240333 r240334 1 2019-01-23 Oriol Brufau <obrufau@igalia.com> 2 3 [css-logical] Implement flow-relative inset properties 4 https://bugs.webkit.org/show_bug.cgi?id=189441 5 6 Reviewed by Dean Jackson. 7 8 Implement 'inset', 'inset-block', 'inset-block-start', 'inset-block-end', 9 'inset-inline', 'inset-inline-start' and 'inset-inline-end' CSS properties 10 behind the CSSLogicalEnabled runtime flag. 11 12 Tests: imported/w3c/web-platform-tests/css/css-logical/logical-box-inset.html 13 webexposed/css-properties-behind-flags.html 14 15 * css/CSSComputedStyleDeclaration.cpp: 16 (WebCore::isLayoutDependent): 17 (WebCore::ComputedStyleExtractor::valueForPropertyinStyle): 18 * css/CSSProperties.json: 19 * css/CSSProperty.cpp: 20 (WebCore::CSSProperty::resolveDirectionAwareProperty): 21 (WebCore::CSSProperty::isDirectionAwareProperty): 22 * css/StyleProperties.cpp: 23 (WebCore::StyleProperties::getPropertyValue const): 24 (WebCore::StyleProperties::asText const): 25 * css/parser/CSSParserFastPaths.cpp: 26 (WebCore::isSimpleLengthPropertyID): 27 * css/parser/CSSPropertyParser.cpp: 28 (WebCore::CSSPropertyParser::parseSingleValue): 29 (WebCore::CSSPropertyParser::parseShorthand): 30 1 31 2019-01-23 Oriol Brufau <obrufau@igalia.com> 2 32 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r240251 r240334 2350 2350 case CSSPropertyLeft: 2351 2351 case CSSPropertyRight: 2352 case CSSPropertyInsetBlockStart: 2353 case CSSPropertyInsetBlockEnd: 2354 case CSSPropertyInsetInlineStart: 2355 case CSSPropertyInsetInlineEnd: 2352 2356 return positionOffsetValueIsRendererDependent(style, renderer); 2353 2357 case CSSPropertyWidth: … … 3976 3980 case CSSPropertyColumns: 3977 3981 return getCSSPropertyValuesForShorthandProperties(columnsShorthand()); 3982 case CSSPropertyInset: 3983 return getCSSPropertyValuesFor4SidesShorthand(insetShorthand()); 3984 case CSSPropertyInsetBlock: 3985 return getCSSPropertyValuesFor2SidesShorthand(insetBlockShorthand()); 3986 case CSSPropertyInsetInline: 3987 return getCSSPropertyValuesFor2SidesShorthand(insetInlineShorthand()); 3978 3988 case CSSPropertyListStyle: 3979 3989 return getCSSPropertyValuesForShorthandProperties(listStyleShorthand()); … … 4113 4123 case CSSPropertyBorderInlineStartStyle: 4114 4124 case CSSPropertyBorderInlineStartWidth: 4125 case CSSPropertyInsetBlockEnd: 4126 case CSSPropertyInsetBlockStart: 4127 case CSSPropertyInsetInlineEnd: 4128 case CSSPropertyInsetInlineStart: 4115 4129 case CSSPropertyMarginBlockEnd: 4116 4130 case CSSPropertyMarginBlockStart: -
trunk/Source/WebCore/css/CSSProperties.json
r240251 r240334 2570 2570 } 2571 2571 }, 2572 "inset": { 2573 "codegen-properties": { 2574 "runtime-flag": "cssLogical", 2575 "longhands": [ 2576 "top", 2577 "right", 2578 "bottom", 2579 "left" 2580 ] 2581 }, 2582 "specification": { 2583 "category": "css-logical-props", 2584 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2585 } 2586 }, 2587 "inset-block": { 2588 "codegen-properties": { 2589 "runtime-flag": "cssLogical", 2590 "longhands": [ 2591 "inset-block-start", 2592 "inset-block-end" 2593 ] 2594 }, 2595 "specification": { 2596 "category": "css-logical-props", 2597 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2598 } 2599 }, 2600 "inset-block-end": { 2601 "codegen-properties": { 2602 "runtime-flag": "cssLogical", 2603 "skip-builder": true 2604 }, 2605 "specification": { 2606 "category": "css-logical-props", 2607 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2608 } 2609 }, 2610 "inset-block-start": { 2611 "codegen-properties": { 2612 "runtime-flag": "cssLogical", 2613 "skip-builder": true 2614 }, 2615 "specification": { 2616 "category": "css-logical-props", 2617 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2618 } 2619 }, 2620 "inset-inline": { 2621 "codegen-properties": { 2622 "runtime-flag": "cssLogical", 2623 "longhands": [ 2624 "inset-inline-start", 2625 "inset-inline-end" 2626 ] 2627 }, 2628 "specification": { 2629 "category": "css-logical-props", 2630 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2631 } 2632 }, 2633 "inset-inline-end": { 2634 "codegen-properties": { 2635 "runtime-flag": "cssLogical", 2636 "skip-builder": true 2637 }, 2638 "specification": { 2639 "category": "css-logical-props", 2640 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2641 } 2642 }, 2643 "inset-inline-start": { 2644 "codegen-properties": { 2645 "runtime-flag": "cssLogical", 2646 "skip-builder": true 2647 }, 2648 "specification": { 2649 "category": "css-logical-props", 2650 "url": "https://www.w3.org/TR/css-logical/#inset-properties" 2651 } 2652 }, 2572 2653 "kerning": { 2573 2654 "inherited": true, -
trunk/Source/WebCore/css/CSSProperty.cpp
r234798 r240334 77 77 { 78 78 switch (propertyID) { 79 case CSSPropertyInsetInlineEnd: 80 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::End, insetShorthand()); 81 case CSSPropertyInsetInlineStart: 82 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Start, insetShorthand()); 83 case CSSPropertyInsetBlockStart: 84 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::Before, insetShorthand()); 85 case CSSPropertyInsetBlockEnd: 86 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::After, insetShorthand()); 79 87 case CSSPropertyMarginInlineEnd: 80 88 return resolveToPhysicalProperty(direction, writingMode, LogicalBoxSide::End, marginShorthand()); … … 187 195 case CSSPropertyBorderBlockEndStyle: 188 196 case CSSPropertyBorderBlockEndWidth: 197 case CSSPropertyInsetInlineEnd: 198 case CSSPropertyInsetInlineStart: 199 case CSSPropertyInsetBlockStart: 200 case CSSPropertyInsetBlockEnd: 189 201 case CSSPropertyMarginInlineEnd: 190 202 case CSSPropertyMarginInlineStart: -
trunk/Source/WebCore/css/StyleProperties.cpp
r240310 r240334 218 218 case CSSPropertyFont: 219 219 return fontValue(); 220 case CSSPropertyInset: 221 return get4Values(insetShorthand()); 222 case CSSPropertyInsetBlock: 223 return get2Values(insetBlockShorthand()); 224 case CSSPropertyInsetInline: 225 return get2Values(insetInlineShorthand()); 220 226 case CSSPropertyMargin: 221 227 return get4Values(marginShorthand()); … … 1087 1093 // Don't use CSSPropertyFont because old UAs can't recognize them but are important for editing. 1088 1094 break; 1095 case CSSPropertyTop: 1096 case CSSPropertyRight: 1097 case CSSPropertyBottom: 1098 case CSSPropertyLeft: 1099 shorthandPropertyID = CSSPropertyInset; 1100 break; 1101 case CSSPropertyInsetBlockStart: 1102 case CSSPropertyInsetBlockEnd: 1103 shorthandPropertyID = CSSPropertyInsetBlock; 1104 break; 1105 case CSSPropertyInsetInlineStart: 1106 case CSSPropertyInsetInlineEnd: 1107 shorthandPropertyID = CSSPropertyInsetInline; 1108 break; 1089 1109 case CSSPropertyListStyleType: 1090 1110 case CSSPropertyListStylePosition: -
trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r239978 r240334 71 71 case CSSPropertyCy: 72 72 case CSSPropertyLeft: 73 case CSSPropertyInsetBlockEnd: 74 case CSSPropertyInsetBlockStart: 75 case CSSPropertyInsetInlineEnd: 76 case CSSPropertyInsetInlineStart: 73 77 case CSSPropertyMarginBottom: 74 78 case CSSPropertyMarginLeft: -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r240251 r240334 4002 4002 case CSSPropertyTop: 4003 4003 return consumeMarginOrOffset(m_range, m_context.mode, UnitlessQuirk::Allow); 4004 case CSSPropertyInsetInlineStart: 4005 case CSSPropertyInsetInlineEnd: 4006 case CSSPropertyInsetBlockStart: 4007 case CSSPropertyInsetBlockEnd: 4004 4008 case CSSPropertyMarginInlineStart: 4005 4009 case CSSPropertyMarginInlineEnd: … … 5748 5752 // of -webkit-text-decoration completely. 5749 5753 return consumeShorthandGreedily(webkitTextDecorationShorthand(), important); 5754 case CSSPropertyInset: 5755 return consume4ValueShorthand(insetShorthand(), important); 5756 case CSSPropertyInsetBlock: 5757 return consume2ValueShorthand(insetBlockShorthand(), important); 5758 case CSSPropertyInsetInline: 5759 return consume2ValueShorthand(insetInlineShorthand(), important); 5750 5760 case CSSPropertyMargin: 5751 5761 return consume4ValueShorthand(marginShorthand(), important);
Note: See TracChangeset
for help on using the changeset viewer.