Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(665)

Unified Diff: sky/specs/style.md

Issue 731863006: Specs: Fix even more markdown errors (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/style.md
diff --git a/sky/specs/style.md b/sky/specs/style.md
index cc1d0ad789d171362cbec7d1ea7f2481f2ba5b67..a264bdb8744fecdd1142a761020bd77a8514422e 100644
--- a/sky/specs/style.md
+++ b/sky/specs/style.md
@@ -319,7 +319,9 @@ be dropped from the render tree.
If any node is removed in this pass relative to the previous pass, and
it has an ownerLayoutManager, then call
-```node.ownerLayoutManager.release(node)```
+```javascript
+node.ownerLayoutManager.release(node)
+```
...to notify the layout manager that the node went away, then set the
node's layoutManager and ownerLayoutManager attributes to null.
@@ -407,7 +409,7 @@ sky:core by default registers:
Layout managers inherit from the following API:
-```
+```javascript
class LayoutManager {
readonly attribute StyleNode node;
constructor LayoutManager(StyleNode node);
@@ -534,28 +536,40 @@ StyleDeclaration objects as follows:
* ``content``
* ``title``
These all add to themselves the same declaration with value:
- ```{ display: { value: null } }```
+```css
+{ display: { value: null } }
+```
* ``img``
This adds to itself the declaration with value:
- ```{ display: { value: sky.ImageElementLayoutManager } }```
+```css
+{ display: { value: sky.ImageElementLayoutManager } }
+```
* ``span``
* ``a``
These all add to themselves the same declaration with value:
- ```{ display: { value: sky.InlineLayoutManager } }```
+```css
+{ display: { value: sky.InlineLayoutManager } }
+```
* ``iframe``
This adds to itself the declaration with value:
- ```{ display: { value: sky.IFrameElementLayoutManager } }```
+```css
+{ display: { value: sky.IFrameElementLayoutManager } }
+```
* ``t``
This adds to itself the declaration with value:
- ```{ display: { value: sky.ParagraphLayoutManager } }```
+```css
+{ display: { value: sky.ParagraphLayoutManager } }
+```
* ``error``
This adds to itself the declaration with value:
- ```{ display: { value: sky.ErrorLayoutManager } }```
+```css
+{ display: { value: sky.ErrorLayoutManager } }
+```
The ``div`` element doesn't have any default styles.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698