fune/testing/web-platform/tests/css/css-flexbox/flexbox_justifycontent-start-rtl-ref.html
Adam Argyle bafd8f588e Bug 1675401 [wpt PR 26404] - Adds flexbox start/end tests for LRT and RTL languages, a=testonly
Automatic update from web-platform-tests
Adds flexbox start/end tests for LRT and RTL languages (#26404)

* 1st 2 stubbed

* added refs

* adds justify-content end tests with refs

* Update css/css-flexbox/flexbox_justifycontent-start-rtl-ref.html

Co-authored-by: Adam Argyle <argyle@google.com>

* Update css/css-flexbox/flexbox_justifycontent-start-ref.html

Co-authored-by: Adam Argyle <argyle@google.com>

* Update css/css-flexbox/flexbox_justifycontent-end-rtl-ref.html

Co-authored-by: Adam Argyle <argyle@google.com>

* Update css/css-flexbox/flexbox_justifycontent-end-ref.html

Co-authored-by: Adam Argyle <argyle@google.com>

Co-authored-by: davidsgrogan <dgrogan@google.com>
--

wpt-commits: 0a73268f53aab2a8d262f12e14b23755b4df0315
wpt-pr: 26404
2021-03-19 10:35:02 +00:00

39 lines
862 B
HTML

<!DOCTYPE html>
<title>flexbox | justify-content: start RTL (ref)</title>
<link rel="author" title="Adam Argyle" href="mailto:argyle@google.com">
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#justify-content-property">
<style>
div {
background: blue;
margin: 1em 0;
border: 1px solid black;
height: 6em;
width: 40em;
direction: rtl;
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
}
span {
background: white;
margin: 0 1em;
width: 8em;
height: 2em;
display: inline-grid;
place-items: center;
flex: none;
}
span:nth-child(1) {background: yellow;}
span:nth-child(2) {background: pink;}
span:nth-child(3) {background: lightblue;}
</style>
<div>
<span>one</span>
<span>two</span>
<span>three</span>
</div>
<p>Test passes if order is visually 1, 2, 3 and alignment is to the top right</p>