Skip to content
Permalink
Browse files
Import css/css-sizing/aspect-ratio tests from WPT
https://bugs.webkit.org/show_bug.cgi?id=228734

Reviewed by Rob Buis.

LayoutTests/imported/w3c:

Import css/css-sizing/aspect-ratio tests from WPT commit f76ae81.

* web-platform-tests/css/css-sizing/aspect-ratio/abspos-021-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/abspos-021.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/w3c-import.log:

LayoutTests:

* TestExpectations:


Canonical link: https://commits.webkit.org/240214@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@280592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
cathiechen committed Aug 3, 2021
1 parent f80478f commit c99d06b8b3df4243e2d509fdfefff27cdbe10183
@@ -1,3 +1,12 @@
2021-08-03 Cathie Chen <cathiechen@igalia.com>

Import css/css-sizing/aspect-ratio tests from WPT
https://bugs.webkit.org/show_bug.cgi?id=228734

Reviewed by Rob Buis.

* TestExpectations:

2021-08-03 Rob Buis <rbuis@igalia.com>

Check that shadow root is connected in invalidateStyleAfterStyleSheetChange
@@ -4711,6 +4711,8 @@ webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-022.html [ ImageOnlyFailure ]
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html [ ImageOnlyFailure ]
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-026.html [ ImageOnlyFailure ]
webkit.org/b/228076 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027.html [ ImageOnlyFailure ]
webkit.org/b/228076 imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028.html [ ImageOnlyFailure ]
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-001.html [ ImageOnlyFailure ]
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-002.html [ ImageOnlyFailure ]
webkit.org/b/214463 imported/w3c/web-platform-tests/css/css-sizing/contain-intrinsic-size/contain-intrinsic-size-003.html [ ImageOnlyFailure ]
@@ -1,3 +1,20 @@
2021-08-03 Cathie Chen <cathiechen@igalia.com>

Import css/css-sizing/aspect-ratio tests from WPT
https://bugs.webkit.org/show_bug.cgi?id=228734

Reviewed by Rob Buis.

Import css/css-sizing/aspect-ratio tests from WPT commit f76ae81001.

* web-platform-tests/css/css-sizing/aspect-ratio/abspos-021-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/abspos-021.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028-expected.xht: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028.html: Added.
* web-platform-tests/css/css-sizing/aspect-ratio/w3c-import.log:

2021-08-02 Chris Dumez <cdumez@apple.com>

[COOP] Cross-Origin-Opener-Policy header parsing fails when report-to parameter is present
@@ -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="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<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>
@@ -0,0 +1,7 @@
<!DOCTYPE html>
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1233150">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div style="position: relative; width: 200px;">
<div style="position: absolute; inset: 0; max-height: 100px; aspect-ratio: 1/1; background: green;"></div>
</div>
@@ -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="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<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>
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<title>CSS aspect-ratio: auto size img with aspect-ratio inside column flexbox</title>
<link rel="help" href="https://www.w3.org/TR/css-sizing-4/#propdef-aspect-ratio">
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<style>
div {
width: 100px;
display: flex;
flex-direction: column;
}
</style>

</head>
<body>
<div><img style="aspect-ratio: 1/1;" src="support/200x200-green.png" /></div>
</body>
</html>
@@ -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="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<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>
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<title>CSS aspect-ratio: auto size img with attributes width and height inside column flexbox</title>
<link rel="help" href="https://html.spec.whatwg.org/#map-to-the-aspect-ratio-property-(using-dimension-rules)">
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />

<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<style>
div {
width: 100px;
display: flex;
flex-direction: column;
}
img {
width: auto;
height: auto;
}
</style>
</head>

<body>
<div><img width="200" height="200" src="support/200x200-green.png" /></div>
</body>
</html>
@@ -54,6 +54,8 @@ List of files:
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-019.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-020-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-020.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-021-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-021.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/auto-margins-001-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/auto-margins-001.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/block-aspect-ratio-001-expected.xht
@@ -181,6 +183,10 @@ List of files:
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-025.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-026-expected.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-026.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-027.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-028.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/grid-aspect-ratio-001-expected.xht
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/grid-aspect-ratio-001.html
/LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/grid-aspect-ratio-002-expected.xht

0 comments on commit c99d06b

Please sign in to comment.