Also added new WPTs for various values of `baseline-shift`. Differential Revision: https://phabricator.services.mozilla.com/D279466
29 lines
641 B
HTML
29 lines
641 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="help" href="https://drafts.csswg.org/css-inline-3/#baseline-shift-property">
|
|
<style>
|
|
#line {
|
|
position: relative;
|
|
height: 100px;
|
|
}
|
|
|
|
#line > * {
|
|
position: absolute;
|
|
background: black;
|
|
}
|
|
|
|
#e1 { left: 0; top: 0; }
|
|
#e2 { left: 120px; top: calc(50% - 60px/2); }
|
|
#e3 { left: 200px; top: calc(50% - 20px/2); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="line">
|
|
<div id="e1" style="width: 100px; height: 100px;"></div>
|
|
<img id="e2" src="/css/support/60x60-green.png">
|
|
<div id="e3" style="width: 20px; height: 20px;"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|