Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml

Issue 2104493003: Import csswg-test@0589ea025a684e31742740ca3b599230bcc25e5d (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update TestExpectations, delete background Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml
diff --git a/third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml b/third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml
index acdcfddb22f98f0880f4e480e1639ea21c5e5a9b..8a504859dccc86944743b3976a7bd42653b9f6d3 100644
--- a/third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml
+++ b/third_party/WebKit/LayoutTests/imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-basic-fieldset-horiz-001.xhtml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
+<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
- -->
-<!--
+-->
+<!--
This test checks that fieldset elements behave correctly as flex items.
- -->
+-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS Test: Testing flexbox layout algorithm property on fieldset flex items in a horizontal flex container</title>
@@ -33,18 +33,18 @@
</head>
<body>
- <!-- A) One flex item -->
+ <!-- A) One flex item -->
<div class="flexbox">
<fieldset/>
</div>
- <!-- B) Text and a fieldset (ensure they aren't merged into one flex item)
- -->
+ <!-- B) Text and a fieldset (ensure they aren't merged into one flex item)
+ -->
<div class="flexbox">
some words <fieldset/>
</div>
- <!-- C) Two fieldset elements, getting stretched by different ratios,
+ <!-- C) Two fieldset elements, getting stretched by different ratios,
from 0.
Space-to-be-distributed = 200px - borders = 200 - (1 + 1) - (1 + 1)
@@ -52,25 +52,25 @@
1st element gets 5/8 of space: 5/8 * 196px = 122.5px
1st element gets 3/8 of space: 3/8 * 196px = 73.5px
- -->
+ -->
<div class="flexbox">
<fieldset style="flex: 5"/>
<fieldset style="flex: 3"/>
</div>
- <!-- D) Two fieldset elements, getting stretched by different ratios, from
+ <!-- D) Two fieldset elements, getting stretched by different ratios, from
different flex bases.
Space-to-be-distributed = 200px - (33 + 1 + 1) - (13 + 1 + 1) = 150px
1st element gets 2/5 of space: 33px + 2/5 * 150px = 93px
1st element gets 3/5 of space: 13px + 3/5 * 150px = 103px
- -->
+ -->
<div class="flexbox">
<fieldset style="width: 33px; flex: 2 auto"/>
<fieldset style="width: 13px; flex: 3 auto"/>
</div>
- <!-- E) Two flex items, getting shrunk by different amounts.
+ <!-- E) Two flex items, getting shrunk by different amounts.
Space-to-be-distributed = 200px - (150 + 1 + 1) - (100 + 1 + 1) = -54px
First element scaled flex ratio = 4 * 150 = 600
@@ -79,23 +79,23 @@
1st element gets 600/900 of space: 150 + 600/900 * -54 = 114px
2nd element gets 300/900 of space: 100 + 300/900 * -54 = 82px
- -->
+ -->
<div class="flexbox">
<fieldset style="width: 150px; flex: 1 4 auto"/>
<fieldset style="width: 100px; flex: 1 3 auto"/>
</div>
- <!-- F) Making sure we don't grow past max-width -->
- <!-- Same as (D), except we've added a max-width on the second element.
- -->
+ <!-- F) Making sure we don't grow past max-width -->
+ <!-- Same as (D), except we've added a max-width on the second element.
+ -->
<div class="flexbox">
<fieldset style="width: 33px; flex: 2 auto"/>
<fieldset style="width: 13px; max-width: 90px; flex: 3 auto"/>
</div>
- <!-- G) Making sure we grow at least as large as min-width -->
- <!-- Same as (C), except we've added a min-width on the second element.
- -->
+ <!-- G) Making sure we grow at least as large as min-width -->
+ <!-- Same as (C), except we've added a min-width on the second element.
+ -->
<div class="flexbox">
<fieldset style="width: 33px; flex: 2 auto"/>
<fieldset style="width: 13px; min-width: 150px; flex: 3 auto"/>

Powered by Google App Engine
This is Rietveld 408576698