mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
Add rtl smoke test.
This commit is contained in:
44
test/smoke/host-context.html
Normal file
44
test/smoke/host-context.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>dom-if</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<link rel="import" href="../../polymer.html">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<dom-module id="x-host">
|
||||
<style>
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
:host-context([dir="rtl"]):after {
|
||||
content: 'rtl';
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
Hi!
|
||||
</template>
|
||||
<script>
|
||||
Polymer({
|
||||
is:'x-host',
|
||||
});
|
||||
</script>
|
||||
</dom-module>
|
||||
|
||||
<div dir="rtl">
|
||||
<x-host></x-host>
|
||||
</div>
|
||||
<br>
|
||||
<x-host></x-host>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user