Diff
Modified: trunk/LayoutTests/ChangeLog (258542 => 258543)
--- trunk/LayoutTests/ChangeLog 2020-03-17 09:36:31 UTC (rev 258542)
+++ trunk/LayoutTests/ChangeLog 2020-03-17 10:14:02 UTC (rev 258543)
@@ -1,3 +1,14 @@
+2020-03-17 Alexey Shvayka <[email protected]>
+
+ Sync web-platform-tests/css/css-cascade from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=209150
+
+ Reviewed by Youenn Fablet.
+
+ Sync web-platform-tests/css/css-cascade from upstream ec2bf5a86c00.
+
+ * TestExpectations:
+
2020-03-16 Simon Fraser <[email protected]>
Remove the zero-delay ScrollingCoordinatorMac commit timer
Modified: trunk/LayoutTests/TestExpectations (258542 => 258543)
--- trunk/LayoutTests/TestExpectations 2020-03-17 09:36:31 UTC (rev 258542)
+++ trunk/LayoutTests/TestExpectations 2020-03-17 10:14:02 UTC (rev 258543)
@@ -1803,6 +1803,12 @@
webkit.org/b/148650 fast/repaint/add-table-overpaint.html [ Pass Failure ]
+imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color.html [ ImageOnlyFailure ]
+imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color.html [ ImageOnlyFailure ]
+imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color.html [ ImageOnlyFailure ]
+imported/w3c/web-platform-tests/css/css-cascade/important-prop.html [ ImageOnlyFailure ]
+webkit.org/b/187093 [ Debug ] imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html [ Skip ]
+
webkit.org/b/148801 imported/w3c/web-platform-tests/css/css-color/t422-rgba-onscreen-b.xht [ ImageOnlyFailure ]
webkit.org/b/148801 imported/w3c/web-platform-tests/css/css-color/t422-rgba-onscreen-multiple-boxes-c.xht [ ImageOnlyFailure ]
webkit.org/b/148801 imported/w3c/web-platform-tests/css/css-color/t425-hsla-onscreen-multiple-boxes-c.xht [ ImageOnlyFailure ]
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (258542 => 258543)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-03-17 09:36:31 UTC (rev 258542)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-03-17 10:14:02 UTC (rev 258543)
@@ -1,3 +1,15 @@
+2020-03-17 Alexey Shvayka <[email protected]>
+
+ Sync web-platform-tests/css/css-cascade from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=209150
+
+ Reviewed by Youenn Fablet.
+
+ Sync web-platform-tests/css/css-cascade from upstream ec2bf5a86c00.
+
+ * resources/import-expectations.json:
+ * web-platform-tests/css/css-cascade/*: Added.
+
2020-03-16 Daniel Bates <[email protected]>
ASSERTION FAILURE: !result.innerNode() || (request.resultIsElementList() && result.listBasedTestResult().size()) in RenderLayer::hitTestContents()
Modified: trunk/LayoutTests/imported/w3c/resources/import-expectations.json (258542 => 258543)
--- trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2020-03-17 09:36:31 UTC (rev 258542)
+++ trunk/LayoutTests/imported/w3c/resources/import-expectations.json 2020-03-17 10:14:02 UTC (rev 258543)
@@ -66,7 +66,6 @@
"web-platform-tests/credential-management": "import",
"web-platform-tests/css": "skip",
"web-platform-tests/css-backgrounds": "skip",
- "web-platform-tests/css-cascade": "skip",
"web-platform-tests/css-font-display": "skip",
"web-platform-tests/css-font-loading": "skip",
"web-platform-tests/css-fonts": "skip",
@@ -81,6 +80,7 @@
"web-platform-tests/css/css-animations": "import",
"web-platform-tests/css/css-animations/": "import",
"web-platform-tests/css/css-backgrounds": "import",
+ "web-platform-tests/css/css-cascade": "import",
"web-platform-tests/css/css-color": "import",
"web-platform-tests/css/css-display": "import",
"web-platform-tests/css/css-easing": "import",
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/META.yml (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/META.yml (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/META.yml 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,4 @@
+spec: https://drafts.csswg.org/css-cascade/
+suggested_reviewers:
+ - fantasai
+ - tabatkins
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade Green Right Square Reference File</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <style>
+#success {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+ float: right;
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div>
+ <div id="success" class="square green above-right"></div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "all" shorthand property excludes "direction"</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="The 'direction' property should not be included in the properties that the 'all' shorthand is expanded to.">
+ <style>
+.outer {
+ direction: rtl;/* should not get overridden by 'all' */
+ all: initial;/* if incorrectly implemented, this causes direction:initial; which is the same as direction:ltr; */
+ /* need these to trump 'all': */
+ position: relative;
+ display: block;
+}
+.square {
+ width: 100px;
+ height: 100px;
+}
+.green {
+ background-color: green;
+}
+.above-right {
+ position: absolute;
+ right: 0;
+}
+.red {
+ background-color: red;
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div class="outer">
+ <div class="square green above-right"></div>
+ <div class="square red"></div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002-expected.xht (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002-expected.xht (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002-expected.xht 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="" />
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div></div>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: all:inherit includes display:inherit</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="all:inherit should cause display:inherit so the red divs will display inline/horizontal (like their parent span) rather than block/vertical (like the default UA style for a div).">
+ <style>
+.inline {
+ all: inherit;/* inherit display:inline from span */
+}
+.half-red-sq {
+ /* half of a red square */
+ display: inline-block;
+ width: 50px;
+ height: 100px;
+ background-color: red;
+}
+#positioned {
+ position: relative;
+}
+#green-sq {
+ position: absolute;/* put higher on Z axis */
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div id="positioned">
+ <div id="green-sq"></div>
+ <span>
+ <div class="inline"><div class="half-red-sq"></div></div><div class="inline"><div class="half-red-sq"></div></div>
+ </span>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Green text reference</title>
+<style>
+ .test { color: green; }
+</style>
+<body>
+ <p class="test">Test passes if this text is green.</p>
+</body>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "color" property preceded by "all: initial"</title>
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="Own 'color', preceded by 'all: inherit', overrides inherited 'color'.">
+ <style>
+ .outer {
+ color: red;
+ }
+
+ .inner {
+ all: inherit;
+ color: green;
+ }
+ </style>
+</head>
+<body>
+ <p class="outer"><span class="inner">Test passes if this text is green.</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Green text reference</title>
+<style>
+ .test { color: green; }
+</style>
+<body>
+ <p class="test">Test passes if this text is green.</p>
+</body>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "color" property preceded by "all: initial"</title>
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="Own 'color', preceded by 'all: initial', overrides inherited 'color'.">
+ <style>
+ .outer {
+ color: red;
+ }
+
+ .inner {
+ all: initial;
+ color: green;
+ }
+ </style>
+</head>
+<body>
+ <p class="outer"><span class="inner">Test passes if this text is green.</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,3 @@
+<!doctype html>
+<title>CSS Test: Reference</title>
+<span style="color:green">This text must be green.</a>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+<!doctype html>
+<title>CSS Cascade: Apply all:initial to a visited link overriding with a color</title>
+<link rel="help" href=""
+<link rel="match" href=""
+<style>
+ a { all: initial }
+ a:visited { color: green }
+</style>
+<a href="" text must be green.</a>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml-expected.txt 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,375 @@
+
+
+PASS setup
+PASS stylesheet takes effect
+PASS align-content
+PASS align-items
+PASS align-self
+PASS alignment-baseline
+PASS all
+PASS alt
+PASS animation-delay
+PASS animation-direction
+PASS animation-duration
+PASS animation-fill-mode
+PASS animation-iteration-count
+PASS animation-name
+PASS animation-play-state
+PASS animation-timing-function
+PASS background-attachment
+PASS background-blend-mode
+PASS background-clip
+PASS background-color
+PASS background-image
+PASS background-origin
+PASS background-position-x
+PASS background-position-y
+PASS background-repeat
+PASS background-size
+PASS baseline-shift
+PASS border-block
+PASS border-block-color
+PASS border-block-end
+PASS border-block-start
+PASS border-block-style
+PASS border-block-width
+PASS border-bottom-color
+PASS border-bottom-left-radius
+PASS border-bottom-right-radius
+PASS border-bottom-style
+PASS border-bottom-width
+PASS border-collapse
+PASS border-image-outset
+PASS border-image-repeat
+PASS border-image-slice
+PASS border-image-source
+PASS border-image-width
+PASS border-inline
+PASS border-inline-color
+PASS border-inline-end
+PASS border-inline-start
+PASS border-inline-style
+PASS border-inline-width
+PASS border-left-color
+PASS border-left-style
+PASS border-left-width
+PASS border-right-color
+PASS border-right-style
+PASS border-right-width
+PASS border-top-color
+PASS border-top-left-radius
+PASS border-top-right-radius
+PASS border-top-style
+PASS border-top-width
+PASS bottom
+PASS box-shadow
+PASS box-sizing
+PASS break-after
+PASS break-before
+PASS break-inside
+PASS buffered-rendering
+PASS caption-side
+PASS caret-color
+PASS clear
+PASS clip
+PASS clip-path
+PASS clip-rule
+PASS color
+PASS color-interpolation
+PASS color-interpolation-filters
+PASS color-rendering
+PASS color-scheme
+PASS column-count
+PASS column-fill
+PASS column-gap
+PASS column-rule-color
+PASS column-rule-style
+PASS column-rule-width
+PASS column-span
+PASS column-width
+PASS content
+PASS counter-increment
+PASS counter-reset
+PASS cursor
+PASS cx
+PASS cy
+PASS direction
+PASS display
+PASS dominant-baseline
+PASS empty-cells
+PASS fill
+PASS fill-opacity
+PASS fill-rule
+PASS filter
+PASS flex-basis
+PASS flex-direction
+PASS flex-grow
+PASS flex-shrink
+PASS flex-wrap
+PASS float
+PASS flood-color
+PASS flood-opacity
+PASS font-family
+PASS font-feature-settings
+PASS font-optical-sizing
+PASS font-size
+PASS font-stretch
+PASS font-style
+PASS font-synthesis
+PASS font-variant-alternates
+PASS font-variant-caps
+PASS font-variant-east-asian
+PASS font-variant-ligatures
+PASS font-variant-numeric
+PASS font-variant-position
+PASS font-variation-settings
+PASS font-weight
+PASS glyph-orientation-horizontal
+PASS glyph-orientation-vertical
+PASS grid-auto-columns
+PASS grid-auto-flow
+PASS grid-auto-rows
+PASS grid-column-end
+PASS grid-column-start
+PASS grid-row-end
+PASS grid-row-start
+PASS grid-template-areas
+PASS grid-template-columns
+PASS grid-template-rows
+PASS hanging-punctuation
+PASS height
+PASS image-orientation
+PASS image-rendering
+PASS inset-block
+PASS inset-inline
+PASS isolation
+PASS justify-content
+PASS justify-items
+PASS justify-self
+PASS kerning
+PASS left
+PASS letter-spacing
+PASS lighting-color
+PASS line-break
+PASS line-height
+PASS list-style-image
+PASS list-style-position
+PASS list-style-type
+PASS margin-block
+PASS margin-bottom
+PASS margin-inline
+PASS margin-left
+PASS margin-right
+PASS margin-top
+PASS marker-end
+PASS marker-mid
+PASS marker-start
+PASS mask
+PASS mask-type
+PASS max-height
+PASS max-width
+PASS min-height
+PASS min-width
+PASS mix-blend-mode
+PASS object-fit
+PASS object-position
+PASS opacity
+PASS order
+PASS orphans
+PASS outline-color
+PASS outline-offset
+PASS outline-style
+PASS outline-width
+PASS overflow-wrap
+PASS overflow-x
+PASS overflow-y
+PASS padding-block
+PASS padding-bottom
+PASS padding-inline
+PASS padding-left
+PASS padding-right
+PASS padding-top
+PASS page-break-after
+PASS page-break-before
+PASS page-break-inside
+PASS paint-order
+PASS perspective
+PASS perspective-origin-x
+PASS perspective-origin-y
+PASS pointer-events
+PASS position
+PASS quotes
+PASS r
+PASS resize
+PASS right
+PASS row-gap
+PASS rx
+PASS ry
+PASS scroll-behavior
+PASS scroll-padding-bottom
+PASS scroll-padding-left
+PASS scroll-padding-right
+PASS scroll-padding-top
+PASS scroll-snap-align
+PASS scroll-snap-margin-bottom
+PASS scroll-snap-margin-left
+PASS scroll-snap-margin-right
+PASS scroll-snap-margin-top
+PASS scroll-snap-type
+PASS shape-image-threshold
+PASS shape-margin
+PASS shape-outside
+PASS shape-rendering
+PASS size
+PASS speak-as
+PASS stop-color
+PASS stop-opacity
+PASS stroke
+FAIL stroke-color assert_equals: expected "rgba(0, 0, 0, 0)" but got "rgb(0, 0, 0)"
+PASS stroke-dasharray
+PASS stroke-dashoffset
+PASS stroke-linecap
+PASS stroke-linejoin
+PASS stroke-miterlimit
+PASS stroke-opacity
+PASS stroke-width
+PASS tab-size
+PASS table-layout
+PASS text-align
+PASS text-anchor
+PASS text-decoration
+PASS text-decoration-color
+PASS text-decoration-line
+PASS text-decoration-skip
+PASS text-decoration-style
+PASS text-decoration-thickness
+PASS text-indent
+PASS text-overflow
+PASS text-rendering
+PASS text-shadow
+PASS text-transform
+PASS text-underline-offset
+PASS text-underline-position
+PASS top
+PASS touch-action
+PASS transform
+PASS transform-box
+PASS transform-origin-x
+PASS transform-origin-y
+PASS transform-origin-z
+PASS transform-style
+PASS transition-delay
+PASS transition-duration
+PASS transition-property
+PASS transition-timing-function
+PASS unicode-bidi
+PASS vector-effect
+PASS vertical-align
+PASS visibility
+PASS white-space
+PASS widows
+PASS width
+PASS will-change
+PASS word-break
+PASS word-spacing
+PASS word-wrap
+PASS writing-mode
+PASS x
+PASS y
+PASS z-index
+PASS zoom
+PASS -apple-color-filter
+PASS -apple-pay-button-style
+PASS -apple-pay-button-type
+PASS -apple-trailing-word
+PASS -webkit-appearance
+PASS -webkit-aspect-ratio
+PASS -webkit-backdrop-filter
+PASS -webkit-backface-visibility
+PASS -webkit-background-clip
+PASS -webkit-background-composite
+PASS -webkit-background-origin
+PASS -webkit-background-size
+PASS -webkit-border-fit
+PASS -webkit-border-horizontal-spacing
+PASS -webkit-border-image
+PASS -webkit-border-vertical-spacing
+PASS -webkit-box-align
+PASS -webkit-box-decoration-break
+PASS -webkit-box-direction
+PASS -webkit-box-flex
+PASS -webkit-box-flex-group
+PASS -webkit-box-lines
+PASS -webkit-box-ordinal-group
+PASS -webkit-box-orient
+PASS -webkit-box-pack
+PASS -webkit-box-reflect
+PASS -webkit-box-shadow
+PASS -webkit-column-axis
+PASS -webkit-column-break-after
+PASS -webkit-column-break-before
+PASS -webkit-column-break-inside
+PASS -webkit-column-progression
+PASS -webkit-cursor-visibility
+PASS -webkit-font-kerning
+PASS -webkit-font-smoothing
+PASS -webkit-hyphenate-character
+PASS -webkit-hyphenate-limit-after
+PASS -webkit-hyphenate-limit-before
+PASS -webkit-hyphenate-limit-lines
+PASS -webkit-hyphens
+PASS -webkit-initial-letter
+PASS -webkit-line-align
+PASS -webkit-line-box-contain
+PASS -webkit-line-clamp
+PASS -webkit-line-grid
+PASS -webkit-line-snap
+PASS -webkit-locale
+PASS -webkit-margin-after-collapse
+PASS -webkit-margin-before-collapse
+PASS -webkit-margin-bottom-collapse
+PASS -webkit-margin-top-collapse
+PASS -webkit-mask-box-image
+PASS -webkit-mask-box-image-outset
+PASS -webkit-mask-box-image-repeat
+FAIL -webkit-mask-box-image-slice assert_equals: expected "0 fill" but got "0"
+PASS -webkit-mask-box-image-source
+PASS -webkit-mask-box-image-width
+PASS -webkit-mask-clip
+PASS -webkit-mask-composite
+PASS -webkit-mask-image
+PASS -webkit-mask-origin
+PASS -webkit-mask-position-x
+PASS -webkit-mask-position-y
+PASS -webkit-mask-repeat
+PASS -webkit-mask-size
+PASS -webkit-mask-source-type
+PASS -webkit-nbsp-mode
+PASS -webkit-print-color-adjust
+PASS -webkit-rtl-ordering
+PASS -webkit-ruby-position
+PASS -webkit-text-combine
+PASS -webkit-text-emphasis-color
+PASS -webkit-text-emphasis-position
+PASS -webkit-text-emphasis-style
+PASS -webkit-text-fill-color
+PASS -webkit-text-orientation
+PASS -webkit-text-security
+PASS -webkit-text-size-adjust
+PASS -webkit-text-stroke-color
+PASS -webkit-text-stroke-width
+PASS -webkit-text-zoom
+PASS -webkit-transform-style
+PASS -webkit-user-drag
+PASS -webkit-user-modify
+PASS -webkit-user-select
+PASS fullscreen-inset-bottom
+PASS safe-area-inset-bottom
+PASS safe-area-inset-left
+PASS fullscreen-inset-left
+PASS fullscreen-auto-hide-duration
+PASS fullscreen-inset-right
+PASS safe-area-inset-right
+PASS fullscreen-inset-top
+PASS safe-area-inset-top
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,34 @@
+<!doctype html>
+<title>all: initial on unknown XML tree</title>
+<link rel=help href=""
+<script src=""
+<script src=""
+<body>
+<script>
+const iframe = document.createElement("iframe");
+const setup_test = async_test("setup");
+iframe._onload_ = setup_test.step_func_done(function() {
+ const root = iframe.contentDocument.documentElement;
+ // we need the empty stylesheet to avoid default XSLT views of the XML
+ const style = iframe.contentDocument.createElementNS("http://www.w3.org/1999/xhtml", "style");
+ root.appendChild(style);
+ const cs = iframe.contentWindow.getComputedStyle(root);
+ let actual_initial = Object.create(null);
+ for (let i = 0; i < cs.length; i++) {
+ let prop_name = cs[i];
+ actual_initial[prop_name] = cs[prop_name];
+ }
+ test(() => {
+ style.textContent = ":root { color: blue }";
+ assert_equals(cs["color"], "rgb(0, 0, 255)");
+ }, "stylesheet takes effect");
+ style.textContent = ":root { all: initial; direction: initial; unicode-bidi: initial; } style { display: none; }";
+ for (let prop_name in actual_initial) {
+ test(() => {
+ assert_equals(cs[prop_name], actual_initial[prop_name]);
+ }, prop_name);
+ }
+});
+iframe.src = "" Blob(["<foo/>"], { type: "application/xml" }));
+document.body.appendChild(iframe);
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Green text reference</title>
+<style>
+ .test { color: green; }
+</style>
+<body>
+ <p class="test">Test passes if this text is green.</p>
+</body>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "color" property preceded by "all: revert"</title>
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="Own 'color', preceded by 'all: revert', overrides inherited 'color'.">
+ <style>
+ .outer {
+ color: red;
+ }
+
+ .inner {
+ all: revert;
+ color: green;
+ }
+ </style>
+</head>
+<body>
+ <p class="outer"><span class="inner">Test passes if this text is green.</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Green text reference</title>
+<style>
+ .test { color: green; }
+</style>
+<body>
+ <p class="test">Test passes if this text is green.</p>
+</body>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: "color" property preceded by "all: unset"</title>
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="Own 'color', preceded by 'all: unset', overrides inherited 'color'.">
+ <style>
+ .outer {
+ color: red;
+ }
+
+ .inner {
+ all: unset;
+ color: green;
+ }
+ </style>
+</head>
+<body>
+ <p class="outer"><span class="inner">Test passes if this text is green.</span></p>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Cascade Green Right Square Reference File</title>
+<link rel="author" title="David Burns" href=""
+<style>
+#success {
+ width: 100px;
+ height: 100px;
+ background-color: green;
+}
+</style>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div>
+ <div id="success"></div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: Important</title>
+ <link rel="author" title="David Burns" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <style>
+ @keyframes override{
+ from, to{background-color: #f00;}
+ }
+
+ .square {
+ color:#00f;
+ animation: override 1s infinite;
+ width: 100px;
+ height: 100px;
+ }
+ .green {
+ background-color:green !important;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div class="square green"></div>
+
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial-expected.txt (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial-expected.txt 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,6 @@
+
+PASS z-index:inherit on root element should compute to 'auto'.
+PASS position:inherit on root element should compute to 'static'.
+PASS overflow:inherit on root element should compute to 'visible'.
+PASS background-color:inherit on root element should compute to 'rgba(0, 0, 0, 0)'.
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>CSS Cascading and Inheritance test: Root element inherits from initial values</title>
+<link rel="author" title="Rune Lillesveen" href=""
+<link rel="help" href=""
+<script src=""
+<script src=""
+<style>
+html {
+ z-index: inherit;
+ position: inherit;
+ overflow: inherit;
+ background-color: inherit;
+}
+body {
+ overflow: scroll;
+ background-color: pink;
+}
+</style>
+<script>
+ test(function() {
+ assert_equals(getComputedStyle(document.documentElement).zIndex, "auto");
+ }, "z-index:inherit on root element should compute to 'auto'.");
+
+ test(function() {
+ assert_equals(getComputedStyle(document.documentElement).position, "static");
+ }, "position:inherit on root element should compute to 'static'.");
+
+ test(function() {
+ assert_equals(getComputedStyle(document.documentElement).overflow, "visible");
+ }, "overflow:inherit on root element should compute to 'visible'.");
+
+ test(function() {
+ assert_equals(getComputedStyle(document.documentElement).backgroundColor, "rgba(0, 0, 0, 0)");
+ }, "background-color:inherit on root element should compute to 'rgba(0, 0, 0, 0)'.");
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001-expected.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001-expected.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001-expected.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade "W" Reference File</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <style>
+body {
+ background-color: white;
+}
+div {
+ font-size: 100px;
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a "W" and <strong>no red</strong>.</p>
+ <div>W</div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: the "initial" value</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="initial is not the same as inherit. color:initial results in non-red. background-color:initial results in transparent.">
+ <style>
+body {
+ background-color: white;
+}
+div {
+ font-size: 100px;
+}
+.outer {
+ color: red;
+}
+.inner {
+ background-color: red;
+}
+.inner {
+ color: initial;/* normally black, almost certainly not red */
+ background-color: initial;/* transparent, so the body's white will show thru */
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a "W" and <strong>no red</strong>.</p>
+ <div class="outer">
+ <div class="inner">W</div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid-expected.txt (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid-expected.txt 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,9 @@
+
+PASS e.style['all'] = "auto" should not set the property value
+PASS e.style['all'] = "none" should not set the property value
+PASS e.style['all'] = "filter" should not set the property value
+PASS e.style['all'] = "unset inherit" should not set the property value
+PASS e.style['all'] = "inherit initial" should not set the property value
+PASS e.style['all'] = "initial unset" should not set the property value
+PASS e.style['all'] = "opacity transform" should not set the property value
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Cascading and Inheritance Level 3: parsing all with invalid values</title>
+<link rel="author" title="Eric Willigers" href=""
+<link rel="help" href=""
+<meta name="assert" content="all supports only the grammar 'initial | inherit | unset'.">
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+test_invalid_value("all", "auto");
+test_invalid_value("all", "none");
+test_invalid_value("all", "filter");
+test_invalid_value("all", "unset inherit");
+test_invalid_value("all", "inherit initial");
+test_invalid_value("all", "initial unset");
+test_invalid_value("all", "opacity transform");
+</script>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid-expected.txt (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid-expected.txt 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,5 @@
+
+FAIL e.style['all'] = "initial" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['all'] = "inherit" should set the property value assert_not_equals: property should be set got disallowed value ""
+FAIL e.style['all'] = "unset" should set the property value assert_not_equals: property should be set got disallowed value ""
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Cascading and Inheritance Level 3: parsing all with valid values</title>
+<link rel="author" title="Eric Willigers" href=""
+<link rel="help" href=""
+<meta name="assert" content="all supports the full grammar 'initial | inherit | unset'.">
+<script src=""
+<script src=""
+<script src=""
+</head>
+<body>
+<script>
+test_valid_value("all", "initial");
+test_valid_value("all", "inherit");
+test_valid_value("all", "unset");
+</script>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/w3c-import.log (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/w3c-import.log (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/w3c-import.log 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,18 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+ https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-invalid.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/parsing/all-valid.html
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001-expected.xht (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001-expected.xht (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001-expected.xht 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="" />
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div></div>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: 'revert' keyword for 'display' property of div element</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="On a <div>, display:revert should compute to display:block per the default styles for <div>s in the UA stylesheet.">
+ <style>
+#outer {
+ background-color: red;
+ width: 100px;
+ height: 100px;
+ overflow: hidden;
+}
+#inner {
+ color: green;
+ background-color: green;
+ display: inline;
+ display: revert;/* since #inner is a <div>, this should compute to 'block' */
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div id="outer">
+ <div id="inner">
+ This<br>
+ is<br>
+ filler<br>
+ text.<br>
+ This<br>
+ is<br>
+ filler<br>
+ text.
+ </div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002-expected.xht (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002-expected.xht (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002-expected.xht 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="" />
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div></div>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Cascade: 'revert' keyword interaction with !important</title>
+<link rel="author" title="Emilio Cobos Álvarez" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<link rel="match" href=""
+<style>
+#outer {
+ background-color: red;
+ width: 100px;
+ height: 100px;
+ overflow: hidden;
+}
+#inner {
+ /* This should win over `revert` */
+ display: block !important;
+}
+#inner {
+ color: green;
+ background-color: green;
+ display: revert;
+}
+</style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div id="outer">
+ <span id="inner">
+ This<br>
+ is<br>
+ filler<br>
+ text.<br>
+ This<br>
+ is<br>
+ filler<br>
+ text.
+ </span>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003-expected.txt (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003-expected.txt 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,5 @@
+This is a header that should get some margin
+
+
+PASS revert works with transitions
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Cascade: 'revert' keyword in transition</title>
+<link rel="author" title="Emilio Cobos Álvarez" href=""
+<link rel="author" title="Mozilla" href=""
+<link rel="help" href=""
+<script src=""
+<script src=""
+<style>
+html, body { margin: 0 }
+h1 {
+ margin: 0;
+ transition: margin 10s;
+ transition-delay: -5s; /* So we can expect it to be half-way the transition when toggling the property */
+}
+</style>
+<h1>This is a header that should get some margin</h1>
+<script>
+test(function() {
+ const el = document.querySelector("h1");
+ const cs = getComputedStyle(el);
+ assert_equals(cs.marginTop, "0px", "Margin before transition");
+ el.style.margin = "revert";
+ const midTransition = cs.marginTop;
+ assert_not_equals(midTransition, "0px", "Margin mid transition");
+ el.style.transition = "none";
+ assert_not_equals(cs.marginTop, midTransition, "Default margin");
+}, "revert works with transitions");
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001-expected.xht (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001-expected.xht (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001-expected.xht 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="" />
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div></div>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: the "unset" value</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="color:unset is the same as color:inherit since color is an inherited property. background-color:unset is the same as background-color:initial since background-color is a non-inherited property.">
+ <style>
+.square {
+ width: 100px;
+ height: 100px;
+}
+.under {
+ background-color: green;
+}
+.outer {
+ color: green;
+}
+.inner {
+ position: absolute;
+ color: red;
+ background-color: red;
+ font-size: 40px;
+}
+.inner {
+ color: unset;/* inherit from .outer */
+ background-color: unset;/* initial, transparent, .under shows thru */
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div class="outer">
+ <div class="inner square">WW</div>
+ <div class="under square"></div>
+ </div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002-expected.xht (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002-expected.xht (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002-expected.xht 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Gérard Talbot" href="" />
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 100px;
+ width: 100px;
+ }
+ ]]></style>
+ </head>
+ <body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+ <div></div>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002.html (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002.html 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>CSS Cascade: the "unset" value</title>
+ <link rel="author" title="Chris Rebert" href=""
+ <link rel="help" href=""
+ <link rel="help" href=""
+ <link rel="match" href=""
+ <meta name="flags" content="">
+ <meta name="assert" content="display:unset should be the same as display:initial since 'display' is not an inherited property. display:unset should be the same as display:inline since 'inline' is the initial value of 'display'.">
+ <style>
+.square {
+ width: 100px;
+ height: 100px;
+}
+.green {
+ background-color: green;
+}
+.top {
+ position: absolute;
+}
+.fail {
+ background-color: red;
+ display: inline-block;
+ display: unset;/* initial, inline */
+}
+ </style>
+</head>
+<body>
+ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+
+ <div class="top"><span class="square fail"></span></div>
+ <div class="green square"></div>
+</body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/w3c-import.log (0 => 258543)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/w3c-import.log (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/w3c-import.log 2020-03-17 10:14:02 UTC (rev 258543)
@@ -0,0 +1,46 @@
+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the WPT github:
+ https://github.com/web-platform-tests/wpt
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/META.yml
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002-expected.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-inherit-color.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-color.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-visited.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-initial-xml.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-revert-color.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/all-prop-unset-color.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/important-prop.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/inherit-initial.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/initial-color-background-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001-expected.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002-expected.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-002.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/revert-val-003.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001-expected.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-001.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002-expected.xht
+/LayoutTests/imported/w3c/web-platform-tests/css/css-cascade/unset-val-002.html