Skip to content

Commit fe3ae0f

Browse files
committed
Added CI attribute selectors and a Firefox Grid bug
1 parent fcce0af commit fe3ae0f

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

attribute-ci.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>CSS test</title>
5+
<meta charset="utf-8" />
6+
<link rel="stylesheet" type="text/css" href="c/style-insert-tests.css">
7+
<style type="text/css" media="all" id="tests">
8+
*[class~="test"] {background: #DDD;}
9+
*[class~="test" i] {color: green;}
10+
</style>
11+
</head>
12+
<body>
13+
14+
<div class="arena">
15+
16+
<ol>
17+
<li class="test">List item</li>
18+
<li class="TEST">List item</li>
19+
<li class="test element">List item</li>
20+
<li class="TEST element">List item</li>
21+
<li class="tested element">List item</li>
22+
<li class="TESTED element">List item</li>
23+
</ol>
24+
25+
</div>
26+
27+
</body>
28+
</html>

firefox/grid-scale.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<title>Firefox grid inspector scaling bug</title>
6+
<link type="text/css" href="../c/style-insert-tests.css" rel="stylesheet">
7+
<style type="text/css" id="tests">
8+
#test {
9+
display: grid;
10+
grid-template-columns: 10em 10em;
11+
grid-template-rows: min-content min-content;
12+
grid-gap: 10px;
13+
border: 2px solid red; padding: 1em; width: 20em;
14+
transform: scale(1.5);
15+
transform-origin: top left;
16+
}
17+
#test p {border: 1px dotted blue;margin: 0;}
18+
</style>
19+
</head>
20+
<body>
21+
22+
<div id="test">
23+
<p>One</p>
24+
<p>Two</p>
25+
<p>Three</p>
26+
<p>Four</p>
27+
</div>
28+
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)