margin:before(1em) — functional option for logical values

Posted in dotnet, vb, vb.net | No Comments »

There is a pending issue for new writing modes (especially vertical) on what can be done to make one stylesheet work in all writing modes.

We had a brief discussion at F2F on a syntax option that would allow specifying logical values without adding many new properties. I have an action to write it up, here it is.

BACKGROUND

All directional CSS properties are defined as physical (so e.g. "margin-left:1em" is always visually left). But if the design intent of 'margin-left' is to add space before start of each line, it need somehow to be changed to 'margin-right' in RTL, or 'margin-top' in vertical.

I will not try to revisit all related discussions (details can be found in this mailing list). Just to summarize the current state of affairs,

*         Switching 'xxx-left', 'xxx-top' etc. from physical to logical is not an option.

*         A global mode that changes all or some properties to logical is possible, but appears dangerous. There is no precedent for mode-changing properties so far (although 'box

Similar:

  1. [css3-page] margin box layout I've been trying to read Section 6.3 [1] and my head hurts. Maybe I should upgrade, but I think the underlying model is simple and...
  2. Tools to convert option strict off code into option strict on? I have to take over a project written in vb.net, which contains more than 400k lines of code written in option strict off mode. I...
  3. What is the best way to mix VB.NET’s Option Strict and the new Option Infer directives? In a related question, my team is about to (hopefully) start using LINQ, and I’d like to take advantage of anonymous types. What is the...
  4. Selected Option for Select Tag/Dropdown/Menu List cna anyone tell me how to use the Select = "selected" option for a simple dropdown. for example when someone chooses c it will have...
  5. [css3-text-layout][svg] writing-mode values across CSS and SVG (Copying Doug as I am not sure whether this is a concern of the FXTF or the SVG WG proper) Currently, CSS3 Text Layout defines...

Leave a Reply