File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
45
45
/**
46
- * Some stuff about :dir
46
+ * Element class mixin that allows elements to use the `:dir` CSS Selector to have
47
+ * text direction specific styling.
48
+ *
49
+ * With this mixin, any stylesheet provided in the template will be transform `:dir` into
50
+ * `:host([dir])` and sync direction with the page via the element's `dir` attribute.
51
+ *
52
+ * Elements can opt out of the global page text direction by setting the `dir` attribute
53
+ * directly in `ready()`.
54
+ *
55
+ * Caveats:
56
+ * - Automatic left-to-right or right-to-left styling is sync'd with the `<html>` element
57
+ * - Applications must set `<html dir="ltr">` or `<html dir="rtl">` to sync direction
58
+ * - Opting out of the global direction styling is permanent
47
59
*
48
60
* @mixinFunction
49
61
* @polymer
You can’t perform that action at this time.
0 commit comments